WordPressプラグイン - 「Contact Form 7」
作成日時:2019/01/03
更新日時:2019/01/03
スポンサーリンク
この記事の確認環境
WordPress 5.0.2
Contact Form 7 バージョン 5.1.1
プラグイン概要
コンタクトフォームを簡単に作成、管理が行えます。
プラグイン公式サイト
https://ja.wordpress.org/plugins/contact-form-7/
ファイル一覧
アクションフック一覧
設定ファイル | フック種類 | 関数 |
---|---|---|
admin.php | admin_init | wpcf7_admin_init |
admin.php | admin_menu | wpcf7_admin_menu |
admin.php | 'load-' . $edit | wpcf7_load_contact_form_admin |
admin.php | 'load-' . $addnew | wpcf7_load_contact_form_admin |
admin.php | 'load-' . $integration | wpcf7_load_integration_page |
admin.php | admin_enqueue_scripts | wpcf7_admin_enqueue_scripts |
admin.php | doing_dark_mode | wpcf7_dark_mode_support |
admin.php | wpcf7_admin_notices | wpcf7_admin_updated_message |
admin.php | wpcf7_admin_warnings | wpcf7_old_wp_version_error |
admin.php | wpcf7_admin_warnings | wpcf7_not_allowed_to_edit |
config-validator.php | wpcf7_admin_menu | wpcf7_admin_init_bulk_cv |
config-validator.php | wpcf7_admin_warnings | wpcf7_admin_warnings_bulk_cv |
config-validator.php | wpcf7_admin_load | wpcf7_load_bulk_validate_page |
welcome-panel.php | wp_ajax_wpcf7-update-welcome-panel | wpcf7_admin_ajax_welcome_panel |
controller.php | parse_request | wpcf7_control_init' |
controller.php | wp_enqueue_scripts | wpcf7_do_enqueue_scripts |
controller.php | wp_enqueue_scripts | wpcf7_html5_fallback |
mail.php | phpmailer_init | wpcf7_phpmailer_init |
rest-api.php | rest_api_init | wpcf7_rest_api_init |
upgrade.php | wpcf7_upgrade | wpcf7_convert_to_cpt |
upgrade.php | wpcf7_upgrade | wpcf7_prepend_underscore |
acceptance.php | wpcf7_init | wpcf7_add_form_tag_acceptance |
acceptance.php | wpcf7_admin_init | wpcf7_add_tag_generator_acceptance |
checkbox.php | wpcf7_init | wpcf7_add_form_tag_checkbox |
checkbox.php | wpcf7_admin_init | wpcf7_add_tag_generator_checkbox_and_radio |
constant-contact.php | wpcf7_init | wpcf7_constant_contact_register_service |
constant-contact.php | wpcf7_submit | wpcf7_constant_contact_submit |
constant-contact.php | wpcf7_admin_init | WPCF7_ConstantContact::auth_redirect |
count.php | wpcf7_init | wpcf7_add_form_tag_count |
date.php | wpcf7_init | wpcf7_add_form_tag_date |
date.php | wpcf7_admin_init | wpcf7_add_tag_generator_date |
file.php | wpcf7_init | wpcf7_add_form_tag_file |
file.php | wpcf7_admin_init | wpcf7_add_tag_generator_file |
file.php | wpcf7_admin_warnings | wpcf7_file_display_warning_message |
file.php | template_redirect | wpcf7_cleanup_upload_files |
flaming.php | wpcf7_submit | wpcf7_flamingo_submit |
flaming.php | wpcf7_after_update | wpcf7_flamingo_update_channel |
hidden.php | wpcf7_init | wpcf7_add_form_tag_hidden |
number.php | wpcf7_init | wpcf7_add_form_tag_number |
number.php | wpcf7_admin_init | wpcf7_add_tag_generator_number |
quiz.php | wpcf7_init | wpcf7_add_form_tag_quiz |
quiz.php | wpcf7_admin_init | wpcf7_add_tag_generator_quiz |
really-simple-captcha.php | wpcf7_init | wpcf7_add_form_tag_captcha |
really-simple-captcha.php | wpcf7_admin_init | wpcf7_add_tag_generator_captcha |
really-simple-captcha.php | wpcf7_admin_warnings | wpcf7_captcha_display_warning_message |
really-simple-captcha.php | template_redirect | wpcf7_cleanup_captcha_files |
recaptcha.php | wpcf7_init | wpcf7_recaptcha_register_service |
recaptcha.php | wp_enqueue_scripts | wpcf7_recaptcha_enqueue_scripts |
recaptcha.php | wp_footer | wpcf7_recaptcha_onload_script |
recaptcha.php | wpcf7_init | wpcf7_recaptcha_add_form_tag_recaptcha |
recaptcha.php | wpcf7_upgrade | wpcf7_upgrade_recaptcha_v2_v3 |
recaptcha.php | wpcf7_admin_menu | wpcf7_admin_init_recaptcha_v2_v3 |
recaptcha.php | wpcf7_admin_warnings | wpcf7_admin_warnings_recaptcha_v2_v3 |
response.php | wpcf7_init | wpcf7_add_form_tag_response |
select.php | wpcf7_init | wpcf7_add_form_tag_select |
select.php | wpcf7_admin_init | wpcf7_add_tag_generator_menu |
submit.php | wpcf7_init | wpcf7_add_form_tag_submit |
submit.php | wpcf7_admin_init | wpcf7_add_tag_generator_submit |
text.php | wpcf7_init | wpcf7_add_form_tag_text |
text.php | wpcf7_admin_init | wpcf7_add_tag_generator_text |
textarea.php | wpcf7_init | wpcf7_add_form_tag_textarea |
textarea.php | wpcf7_admin_init | wpcf7_add_tag_generator_textarea |
settings.php | plugins_loaded | wpcf7 |
settings.php | init | wpcf7_init |
settings.php | admin_init | wpcf7_upgrade |
settings.php | 'activate_' . WPCF7_PLUGIN_BASENAME | wpcf7_install |
フィルターフック一覧
フック種類 | 関数 |
---|---|
- | - |
関数一覧
関数名 | 概要 |
---|---|
- | - |
使用テーブル一覧
テーブル名 | 概要 |
---|---|
wp_options | - |
wp_postmeta | update_post_meta()を使用。 |
wp_posts | wp_insert_post()を使用。コンタクトフォームの管理に使用しています。 |
オプション一覧
「update_option()」,「get_option()」を使用して「wp_options」テーブルに設定値を格納しています。
キー | 説明 |
---|---|
wpcf7 | 本プラグインのオプションが全て含まれているオブジェクトです。 |
「wp_options」テーブルの「option_name」カラムの値が「wpcf7」のレコードの「option_value」カラムに格納されている値の例
a:2:{ s:7:"version"; s:5:"5.1.1"; s:13:"bulk_validate"; a:4:{ s:9:"timestamp"; d:1546528423; s:7:"version"; s:5:"5.1.1"; s:11:"count_valid"; i:1; s:13:"count_invalid"; i:0; } }
上記の値をget_option()関数で取得した戻り値のダンプ
Array ( [version] => 5.1.1 [bulk_validate] => Array ( [timestamp] => 1546528423 [version] => 5.1.1 [count_valid] => 1 [count_invalid] => 0 ) )
ショートコード一覧
add_shortcode()関数で追加
ショートコード | 説明 |
---|---|
contact-form-7 | コンタクトフォームを表示する。 |