Core Helpers — hooks
25 hooks — 12 actions · 13 filters.
| Hook | Type | Summary |
|---|---|---|
fw_customizer_options_update | action | Fires after a customizer option value is saved, passing details of the changed option. |
fw_form_display_errors_frontend | action | Use this action to customize errors display in your theme |
fw_form_display:after | action | Fires just before the closing form tag when an FW_Form renders, passing the form instance so listeners can inject markup inside the form. |
fw_form_display:after_form | action | Fires after the closing form tag when an FW_Form renders, passing the form instance. |
fw_form_display:before | action | Fires just after the opening form tag when an FW_Form renders, passing the form instance so listeners can inject markup inside the form. |
fw_form_display:before_form | action | Fires before the opening form tag when an FW_Form renders, passing the form instance. |
fw_framework_customizations_dir_rel_path | filter | Filters the relative path to the framework-customizations directory (default /framework-customizations) before it is cached. |
fw_framework_directory | filter | Filters the absolute path to the framework directory before it is cached. |
fw_framework_directory_uri | filter | Filters the resolved URI of the framework directory before it is cached, letting a host override where framework assets load from. |
fw_get_db_post_option:fw-storage-enabled | filter | Filters whether post-option DB storage/altering is enabled for a given post type, used to avoid recursive option-lookup loops. |
fw_google_fonts | filter | Filters the assembled Google Fonts list (family, variants, position) before it is cached and returned. |
fw_googleapis_webfonts_url | filter | Filters the remote URL fetched for the Google web-fonts catalog when the local cache is stale. |
fw_option_value_error | filter | Filters the validation error for a single option value during save; return a non-empty string to mark the field invalid. |
fw_post_options_update | action | Fires after a post's options are saved, passing the post id and option id so listeners can react to the update. |
fw_settings_form_render | action | Fires while rendering a Theme Settings form, passing ajax-submit and side-tabs flags so listeners can hook the form markup. |
fw_settings_form_reset | action | Fires after a Theme Settings form is reset, passing the old and new values so listeners can react to the reset. |
fw_settings_form_reset:values | filter | Filters the values retained when Theme Settings are reset, letting code persist selected options (e.g. API credentials) through a reset. |
fw_settings_form_texts | filter | Filters the Theme Settings form button labels (Save Changes, Reset Options) so they can be customized. |
fw_settings_options_update | action | Fires after a settings option value is set, passing the option id and change details so listeners can react to setting updates. |
fw_term_options_update | action | Fires after a term option value is set, passing term id, taxonomy, and option id so listeners can react to the change. |
fw_use_sessions | filter | Filters whether PHP sessions may be started (default true), letting a site disable session_start() usage. |
fw:form:nonce-name-data | filter | Filters extra data appended to a FW_Form nonce name so sub-forms sharing one instance stay distinct. |
fw:get_options_values_from_input:before | filter | Filters an early override for option values extracted from input; returning a non-null value short-circuits the default extraction. |
fw:option-storage-types:register | action | Fires to let code register additional option storage types on the storage-type register. |
fw:options-default-values:skip-types | filter | Filters the map of option types to skip when filling missing DB values with defaults. |
fw_customizer_options_update
🎬 action
Fires after a customizer option value is saved, passing details of the changed option.
add_action( 'fw_customizer_options_update', $callback );
Fired in: framework/helpers/database.php:563
fw_form_display_errors_frontend
🎬 action
Use this action to customize errors display in your theme
add_action( 'fw_form_display_errors_frontend', $callback );
Fired in: framework/helpers/class-fw-form.php:229
fw_form_display:after
🎬 action
Fires just before the closing form tag when an FW_Form renders, passing the form instance so listeners can inject markup inside the form.
add_action( 'fw_form_display:after', $callback );
Fired in: framework/helpers/class-fw-form.php:352
fw_form_display:after_form
🎬 action
Fires after the closing form tag when an FW_Form renders, passing the form instance.
add_action( 'fw_form_display:after_form', $callback );
Fired in: framework/helpers/class-fw-form.php:357
fw_form_display:before
🎬 action
Fires just after the opening form tag when an FW_Form renders, passing the form instance so listeners can inject markup inside the form.
add_action( 'fw_form_display:before', $callback );
Fired in: framework/helpers/class-fw-form.php:308
fw_form_display:before_form
🎬 action
Fires before the opening form tag when an FW_Form renders, passing the form instance.
add_action( 'fw_form_display:before_form', $callback );
Fired in: framework/helpers/class-fw-form.php:302
fw_framework_customizations_dir_rel_path
🧪 filter
Filters the relative path to the framework-customizations directory (default /framework-customizations) before it is cached.
add_filter( 'fw_framework_customizations_dir_rel_path', $callback );
Fired in: framework/helpers/general.php:42
fw_framework_directory
🧪 filter
Filters the absolute path to the framework directory before it is cached.
add_filter( 'fw_framework_directory', $callback );
Fired in: framework/helpers/general.php:143
fw_framework_directory_uri
🧪 filter
Filters the resolved URI of the framework directory before it is cached, letting a host override where framework assets load from.
add_filter( 'fw_framework_directory_uri', $callback );
Fired in: framework/helpers/general.php:167
fw_get_db_post_option:fw-storage-enabled
🧪 filter
Filters whether post-option DB storage/altering is enabled for a given post type, used to avoid recursive option-lookup loops.
add_filter( 'fw_get_db_post_option:fw-storage-enabled', $callback );
Fired in: framework/helpers/database.php:151
fw_google_fonts
🧪 filter
Filters the assembled Google Fonts list (family, variants, position) before it is cached and returned.
add_filter( 'fw_google_fonts', $callback );
Fired in: framework/helpers/general.php:1535
fw_googleapis_webfonts_url
🧪 filter
Filters the remote URL fetched for the Google web-fonts catalog when the local cache is stale.
add_filter( 'fw_googleapis_webfonts_url', $callback );
Fired in: framework/helpers/general.php:1573
fw_option_value_error
🧪 filter
Filters the validation error for a single option value during save; return a non-empty string to mark the field invalid.
add_filter( 'fw_option_value_error', $callback );
Fired in: framework/helpers/general.php:1368
fw_post_options_update
🎬 action
Fires after a post's options are saved, passing the post id and option id so listeners can react to the update.
add_action( 'fw_post_options_update', $callback );
Fired in: framework/helpers/database.php:200
fw_settings_form_render
🎬 action
Fires while rendering a Theme Settings form, passing ajax-submit and side-tabs flags so listeners can hook the form markup.
add_action( 'fw_settings_form_render', $callback );
Fired in: framework/helpers/class-fw-settings-form.php:219
fw_settings_form_reset
🎬 action · 2 call sites
Fires after a Theme Settings form is reset, passing the old and new values so listeners can react to the reset.
add_action( 'fw_settings_form_reset', $callback );
Fired in: framework/helpers/class-fw-settings-form.php:355
fw_settings_form_reset:values
🧪 filter
Filters the values retained when Theme Settings are reset, letting code persist selected options (e.g. API credentials) through a reset.
add_filter( 'fw_settings_form_reset:values', $callback );
Fired in: framework/helpers/class-fw-settings-form.php:375
fw_settings_form_texts
🧪 filter
Filters the Theme Settings form button labels (Save Changes, Reset Options) so they can be customized.
add_filter( 'fw_settings_form_texts', $callback );
Fired in: framework/helpers/class-fw-settings-form.php:226
fw_settings_options_update
🎬 action
Fires after a settings option value is set, passing the option id and change details so listeners can react to setting updates.
add_action( 'fw_settings_options_update', $callback );
Fired in: framework/helpers/database.php:37
fw_term_options_update
🎬 action
Fires after a term option value is set, passing term id, taxonomy, and option id so listeners can react to the change.
add_action( 'fw_term_options_update', $callback );
Fired in: framework/helpers/database.php:398
fw_use_sessions
🧪 filter · 4 call sites
Filters whether PHP sessions may be started (default true), letting a site disable session_start() usage.
add_filter( 'fw_use_sessions', $callback );
Fired in: framework/helpers/class-fw-session.php:15
fw:form:nonce-name-data
🧪 filter
Filters extra data appended to a FW_Form nonce name so sub-forms sharing one instance stay distinct.
add_filter( 'fw:form:nonce-name-data', $callback );
Fired in: framework/helpers/class-fw-form.php:560
fw:get_options_values_from_input:before
🧪 filter
Filters an early override for option values extracted from input; returning a non-null value short-circuits the default extraction.
add_filter( 'fw:get_options_values_from_input:before', $callback );
Fired in: framework/helpers/general.php:1295
fw:option-storage-types:register
🎬 action
Fires to let code register additional option storage types on the storage-type register.
add_action( 'fw:option-storage-types:register', $callback );
Fired in: framework/helpers/fw-storage.php:115
fw:options-default-values:skip-types
🧪 filter
Filters the map of option types to skip when filling missing DB values with defaults.
add_filter( 'fw:options-default-values:skip-types', $callback );
Fired in: framework/helpers/class-fw-db-options-model.php:204
← Back to Hooks overview