Skip to main content

Core — hooks

54 hooks — 25 actions · 29 filters.

HookTypeSummary
fw_admin_enqueue_scripts:customizeractionFires after customizer backend option scripts are enqueued.
fw_admin_enqueue_scripts:postactionFires after a post-edit screen's option static assets are enqueued, passing the current post.
fw_admin_enqueue_scripts:settingsactionFires after the settings page's option static assets are enqueued.
fw_admin_enqueue_scripts:termactionFires after a term/taxonomy screen's option static assets are enqueued, passing the taxonomy.
fw_after_plugin_activate:before_potential_redirectactionFires after plugin activation activates theme-supported extensions, before any redirect to the extensions install page.
fw_after_supported_extensions_install_successactionFixes https://github.com/ThemeFuse/Unyson/issues/2330
fw_after_switch_theme_activate_extsfilterFilters whether theme extensions are auto-activated on theme switch; returning false skips activation.
fw_backend_add_custom_extensions_menuactionUse this action if you what to add the extensions page in a custom place in menu Usage example http://pastebin.com/2iWVRPAU
fw_backend_add_custom_settings_menuactionUse this action if you what to add the settings page in a custom place in menu Usage example http://pastebin.com/gvAjGRm1
fw_backend_enable_custom_extensions_menufilterFilters whether the custom Extensions admin menu item is registered; returning false suppresses it.
fw_backend_options_ajax_capabilityfilterFilters the capability required to use the backend option-render/value-processing AJAX endpoints (default edit_posts).
fw_backend_options_render:taxonomy:afteractionFires after taxonomy term options are rendered on the term-edit screen.
fw_backend_options_render:taxonomy:beforeactionFires before taxonomy term options are rendered on the term-edit screen.
fw_backend_undefined_option_type_warn_userfilterFilters whether an admin flash warning is shown for an undefined option type; passes the type.
fw_container_types_initactionFires once on first container-type access to let code register custom container types.
fw_customizer_option_change_timeoutfilterFilters the debounce timeout (ms) before a customizer option change is applied (default 333).
fw_customizer_optionsfilterFilters the framework's customizer options array before it is cached.
fw_ext_manager_settings_urlfilterFilters an extension card's custom Settings link URL; return a URL to show it or '' to hide it.
fw_ext_mngr_github_branchfilterResolve the branch to download. Defaults to the repository's GitHub default branch; override via the filter if needed.
fw_extensions_activation_failedactionFires when extensions fail to activate after a deferred activation attempt, passing the map of failed extension names.
fw_extensions_after_activationactionFires after extensions are successfully activated via the deferred activation flow, passing the map of activated extension names.
fw_extensions_after_deactivationactionFires after extensions are successfully deactivated via the deferred flow, passing the map of deactivated extension names.
fw_extensions_before_activationactionFires just before extensions are activated, passing the array of extensions queued for activation.
fw_extensions_before_deactivationactionFires just before extensions are deactivated, passing the array of extensions queued for deactivation.
fw_extensions_before_initactionExtensions are about to activate. You can add subclasses to FW_Extension at this point.
fw_extensions_deactivation_failedactionFires when extensions fail to deactivate after a deferred attempt, passing the map of failed extension names.
fw_extensions_initactionExtensions are activated Now $this->get_children() inside extensions is available
fw_extensions_installactionFires after the extensions install process completes, passing the per-extension result array (WP_Error entries on failure).
fw_extensions_locationsfilter{ '/hello/world/extensions' => 'https://hello.com/world/extensions' }
fw_extensions_locations_afterfilterFilters the registered extension locations map after all locations are collected and before it is cached.
fw_extensions_page_show_other_extensionsfilterFilters whether the Extensions page shows the toggle for incompatible or other available extensions; defaults to true.
fw_extensions_uninstallactionFires after the extensions uninstall process completes, passing the per-extension result array.
fw_framework_manifest_pathfilterFilters the path to the theme's manifest.php file loaded when building the theme manifest.
fw_get_settings_page_slugfilterFilters the admin slug used for the framework's Settings page (default 'fw-settings').
fw_github_api_urlfilterFilters the GitHub API base URL used when the extensions manager resolves a repository's default branch (default https://api.github.com).
fw_js_l10nfilterfixes https://github.com/ThemeFuse/Unyson/issues/2381
fw_loader_imagefilterFilters the URL of the loader/spinner image passed to framework JavaScript (default the framework logo SVG).
fw_notify_about_missing_extensionsfilterFilters whether the admin notice about missing required extensions is shown; default true.
fw_option_types_initactionFires once, the first time an option type is requested, so extensions can register their option types.
fw_post_optionsfilterFilters the resolved options for a post type (after the type-specific filter) before they are cached.
fw_register_ext_download_sourcesactionFires so extensions can register additional download sources with the extensions manager's registrar.
fw_save_post_optionsactionUse the 'fw_post_options_update' action
fw_save_term_optionsactionFires after a taxonomy term's options are saved, passing the term id and taxonomy name.
fw_settings_optionsfilterFilters the resolved Theme Settings options array (cached), letting plugins inject or modify settings options.
fw_taxonomy_optionsfilterFilters the resolved term/taxonomy options array for a taxonomy (cached), letting code inject or modify term options.
fw_theme_available_extensions_file_pathfilterFilters the theme-relative path of the available-extensions.php file the Extensions manager looks for, letting a theme relocate it.
fw_theme_configfilterFilters the resolved theme config array after config.php and child overrides are merged (cached once per request), for framework-level defaults.
fw_theme_settings_menu_registerfilterFilters whether the Theme Settings admin menu should register, letting plugins force it on themes lacking a settings.php.
fw_tmp_dirfilterFilters the temporary directory path used by the Extensions manager (default wp-content/tmp), letting code relocate it.
fw:ajax_options_render:valuesfilterFilters the option values used when rendering options over AJAX; returning non-null overrides the default extracted values.
fw:backend:enqueue-options-on-frontendfilterFilters whether the options-UI static assets may register on the front end, for front-end editors like the Live Page Editor.
fw:backend:option-render:datafilterFilters the data array passed to an option's render view just before the option markup is generated.
fw:option-modal:default:reset-btn-disabledfilterFilters whether the options modal's default Reset button is disabled.
fw:render_options:option_valuefilterFilters an early override for an option's value during backend rendering; a non-null return replaces the computed value.

fw_admin_enqueue_scripts:customizer

🎬 action

Fires after customizer backend option scripts are enqueued.

add_action( 'fw_admin_enqueue_scripts:customizer', $callback );

Fired in: framework/core/components/backend.php:2048

fw_admin_enqueue_scripts:post

🎬 action

Fires after a post-edit screen's option static assets are enqueued, passing the current post.

add_action( 'fw_admin_enqueue_scripts:post', $callback );

Fired in: framework/core/components/backend.php:1235

fw_admin_enqueue_scripts:settings

🎬 action

Fires after the settings page's option static assets are enqueued.

add_action( 'fw_admin_enqueue_scripts:settings', $callback );

Fired in: framework/core/components/backend/class-fw-settings-form-theme.php:279

fw_admin_enqueue_scripts:term

🎬 action

Fires after a term/taxonomy screen's option static assets are enqueued, passing the taxonomy.

add_action( 'fw_admin_enqueue_scripts:term', $callback );

Fired in: framework/core/components/backend.php:1252

fw_after_plugin_activate:before_potential_redirect

🎬 action

Fires after plugin activation activates theme-supported extensions, before any redirect to the extensions install page.

add_action( 'fw_after_plugin_activate:before_potential_redirect', $callback );

Fired in: framework/core/components/extensions/manager/class--fw-extensions-manager.php:502

fw_after_supported_extensions_install_success

🎬 action

Fixes https://github.com/ThemeFuse/Unyson/issues/2330

add_action( 'fw_after_supported_extensions_install_success', $callback );

Fired in: framework/core/components/extensions/manager/class--fw-extensions-manager.php:1562

fw_after_switch_theme_activate_exts

🧪 filter

Filters whether theme extensions are auto-activated on theme switch; returning false skips activation.

add_filter( 'fw_after_switch_theme_activate_exts', $callback );

Fired in: framework/core/components/extensions/manager/class--fw-extensions-manager.php:3655

fw_backend_add_custom_extensions_menu

🎬 action

Use this action if you what to add the extensions page in a custom place in menu Usage example http://pastebin.com/2iWVRPAU

add_action( 'fw_backend_add_custom_extensions_menu', $callback );

Fired in: framework/core/components/extensions/manager/class--fw-extensions-manager.php:906

fw_backend_add_custom_settings_menu

🎬 action

Use this action if you what to add the settings page in a custom place in menu Usage example http://pastebin.com/gvAjGRm1

add_action( 'fw_backend_add_custom_settings_menu', $callback );

Fired in: framework/core/components/backend/class-fw-settings-form-theme.php:199

fw_backend_enable_custom_extensions_menu

🧪 filter

Filters whether the custom Extensions admin menu item is registered; returning false suppresses it.

add_filter( 'fw_backend_enable_custom_extensions_menu', $callback );

Fired in: framework/core/components/extensions/manager/class--fw-extensions-manager.php:898

fw_backend_options_ajax_capability

🧪 filter · 4 call sites

Filters the capability required to use the backend option-render/value-processing AJAX endpoints (default edit_posts).

add_filter( 'fw_backend_options_ajax_capability', $callback );

Fired in: framework/core/components/backend.php:1278

fw_backend_options_render:taxonomy:after

🎬 action · 2 call sites

Fires after taxonomy term options are rendered on the term-edit screen.

add_action( 'fw_backend_options_render:taxonomy:after', $callback );

Fired in: framework/core/components/backend.php:835

fw_backend_options_render:taxonomy:before

🎬 action · 2 call sites

Fires before taxonomy term options are rendered on the term-edit screen.

add_action( 'fw_backend_options_render:taxonomy:before', $callback );

Fired in: framework/core/components/backend.php:832

fw_backend_undefined_option_type_warn_user

🧪 filter

Filters whether an admin flash warning is shown for an undefined option type; passes the type.

add_filter( 'fw_backend_undefined_option_type_warn_user', $callback );

Fired in: framework/core/components/backend.php:1917

fw_container_types_init

🎬 action

Fires once on first container-type access to let code register custom container types.

add_action( 'fw_container_types_init', $callback );

Fired in: framework/core/components/backend.php:1964

fw_customizer_option_change_timeout

🧪 filter

Filters the debounce timeout (ms) before a customizer option change is applied (default 333).

add_filter( 'fw_customizer_option_change_timeout', $callback );

Fired in: framework/core/components/backend.php:2043

fw_customizer_options

🧪 filter

Filters the framework's customizer options array before it is cached.

add_filter( 'fw_customizer_options', $callback );

Fired in: framework/core/components/theme.php:112

fw_ext_manager_settings_url

🧪 filter

Filters an extension card's custom Settings link URL; return a URL to show it or '' to hide it.

add_filter( 'fw_ext_manager_settings_url', $callback );

Fired in: framework/core/components/extensions/manager/views/extension.php:59

fw_ext_mngr_github_branch

🧪 filter

Resolve the branch to download. Defaults to the repository's GitHub default branch; override via the filter if needed.

add_filter( 'fw_ext_mngr_github_branch', $callback );

Fired in: framework/core/components/extensions/manager/includes/download-source/types/class-fw-download-source-github.php:59

fw_extensions_activation_failed

🎬 action

Fires when extensions fail to activate after a deferred activation attempt, passing the map of failed extension names.

add_action( 'fw_extensions_activation_failed', $callback );

Fired in: framework/core/components/extensions/manager/class--fw-extensions-manager.php:752

fw_extensions_after_activation

🎬 action

Fires after extensions are successfully activated via the deferred activation flow, passing the map of activated extension names.

add_action( 'fw_extensions_after_activation', $callback );

Fired in: framework/core/components/extensions/manager/class--fw-extensions-manager.php:748

fw_extensions_after_deactivation

🎬 action

Fires after extensions are successfully deactivated via the deferred flow, passing the map of deactivated extension names.

add_action( 'fw_extensions_after_deactivation', $callback );

Fired in: framework/core/components/extensions/manager/class--fw-extensions-manager.php:772

fw_extensions_before_activation

🎬 action

Fires just before extensions are activated, passing the array of extensions queued for activation.

add_action( 'fw_extensions_before_activation', $callback );

Fired in: framework/core/components/extensions/manager/class--fw-extensions-manager.php:2608

fw_extensions_before_deactivation

🎬 action

Fires just before extensions are deactivated, passing the array of extensions queued for deactivation.

add_action( 'fw_extensions_before_deactivation', $callback );

Fired in: framework/core/components/extensions/manager/class--fw-extensions-manager.php:2855

fw_extensions_before_init

🎬 action

Extensions are about to activate. You can add subclasses to FW_Extension at this point.

add_action( 'fw_extensions_before_init', $callback );

Fired in: framework/core/components/extensions.php:582

fw_extensions_deactivation_failed

🎬 action

Fires when extensions fail to deactivate after a deferred attempt, passing the map of failed extension names.

add_action( 'fw_extensions_deactivation_failed', $callback );

Fired in: framework/core/components/extensions/manager/class--fw-extensions-manager.php:776

fw_extensions_init

🎬 action

Extensions are activated Now $this->get_children() inside extensions is available

add_action( 'fw_extensions_init', $callback );

Fired in: framework/core/components/extensions.php:599

fw_extensions_install

🎬 action

Fires after the extensions install process completes, passing the per-extension result array (WP_Error entries on failure).

add_action( 'fw_extensions_install', $callback );

Fired in: framework/core/components/extensions/manager/class--fw-extensions-manager.php:1939

fw_extensions_locations

🧪 filter

{ '/hello/world/extensions' => 'https://hello.com/world/extensions' }

add_filter( 'fw_extensions_locations', $callback );

Fired in: framework/core/components/extensions.php:309

fw_extensions_locations_after

🧪 filter

Filters the registered extension locations map after all locations are collected and before it is cached.

add_filter( 'fw_extensions_locations_after', $callback );

Fired in: framework/core/components/extensions.php:381

fw_extensions_page_show_other_extensions

🧪 filter

Filters whether the Extensions page shows the toggle for incompatible or other available extensions; defaults to true.

add_filter( 'fw_extensions_page_show_other_extensions', $callback );

Fired in: framework/core/components/extensions/manager/views/extensions-page.php:229

fw_extensions_uninstall

🎬 action

Fires after the extensions uninstall process completes, passing the per-extension result array.

add_action( 'fw_extensions_uninstall', $callback );

Fired in: framework/core/components/extensions/manager/class--fw-extensions-manager.php:2224

fw_framework_manifest_path

🧪 filter

Filters the path to the theme's manifest.php file loaded when building the theme manifest.

add_filter( 'fw_framework_manifest_path', $callback );

Fired in: framework/core/components/theme.php:21

fw_get_settings_page_slug

🧪 filter

Filters the admin slug used for the framework's Settings page (default 'fw-settings').

add_filter( 'fw_get_settings_page_slug', $callback );

Fired in: framework/core/components/backend.php:72

fw_github_api_url

🧪 filter

Filters the GitHub API base URL used when the extensions manager resolves a repository's default branch (default https://api.github.com).

add_filter( 'fw_github_api_url', $callback );

Fired in: framework/core/components/extensions/manager/includes/download-source/types/class-fw-download-source-github.php:64

fw_js_l10n

🧪 filter

fixes https://github.com/ThemeFuse/Unyson/issues/2381

add_filter( 'fw_js_l10n', $callback );

Fired in: framework/core/components/backend.php:519

fw_loader_image

🧪 filter

Filters the URL of the loader/spinner image passed to framework JavaScript (default the framework logo SVG).

add_filter( 'fw_loader_image', $callback );

Fired in: framework/core/components/backend.php:504

fw_notify_about_missing_extensions

🧪 filter

Filters whether the admin notice about missing required extensions is shown; default true.

add_filter( 'fw_notify_about_missing_extensions', $callback );

Fired in: framework/core/components/extensions/manager/class--fw-extensions-manager.php:3814

fw_option_types_init

🎬 action

Fires once, the first time an option type is requested, so extensions can register their option types.

add_action( 'fw_option_types_init', $callback );

Fired in: framework/core/components/backend.php:1905

fw_post_options

🧪 filter

Filters the resolved options for a post type (after the type-specific filter) before they are cached.

add_filter( 'fw_post_options', $callback );

Fired in: framework/core/components/theme.php:127

fw_register_ext_download_sources

🎬 action

Fires so extensions can register additional download sources with the extensions manager's registrar.

add_action( 'fw_register_ext_download_sources', $callback );

Fired in: framework/core/components/extensions/manager/class--fw-extensions-manager.php:3113

fw_save_post_options

🎬 action

Use the 'fw_post_options_update' action

add_action( 'fw_save_post_options', $callback );

Fired in: framework/core/components/backend.php:958

fw_save_term_options

🎬 action · 2 call sites

Fires after a taxonomy term's options are saved, passing the term id and taxonomy name.

add_action( 'fw_save_term_options', $callback );

Fired in: framework/core/components/backend.php:1159

fw_settings_options

🧪 filter

Filters the resolved Theme Settings options array (cached), letting plugins inject or modify settings options.

add_filter( 'fw_settings_options', $callback );

Fired in: framework/core/components/theme.php:97

fw_taxonomy_options

🧪 filter

Filters the resolved term/taxonomy options array for a taxonomy (cached), letting code inject or modify term options.

add_filter( 'fw_taxonomy_options', $callback );

Fired in: framework/core/components/theme.php:146

fw_theme_available_extensions_file_path

🧪 filter

Filters the theme-relative path of the available-extensions.php file the Extensions manager looks for, letting a theme relocate it.

add_filter( 'fw_theme_available_extensions_file_path', $callback );

Fired in: framework/core/components/extensions/manager/class--fw-extensions-manager.php:232

fw_theme_config

🧪 filter

Filters the resolved theme config array after config.php and child overrides are merged (cached once per request), for framework-level defaults.

add_filter( 'fw_theme_config', $callback );

Fired in: framework/core/components/theme.php:214

fw_theme_settings_menu_register

🧪 filter

Filters whether the Theme Settings admin menu should register, letting plugins force it on themes lacking a settings.php.

add_filter( 'fw_theme_settings_menu_register', $callback );

Fired in: framework/core/components/backend/class-fw-settings-form-theme.php:172

fw_tmp_dir

🧪 filter · 2 call sites

Filters the temporary directory path used by the Extensions manager (default wp-content/tmp), letting code relocate it.

add_filter( 'fw_tmp_dir', $callback );

Fired in: framework/core/components/extensions/manager/class--fw-extensions-manager.php:709

fw:ajax_options_render:values

🧪 filter

Filters the option values used when rendering options over AJAX; returning non-null overrides the default extracted values.

add_filter( 'fw:ajax_options_render:values', $callback );

Fired in: framework/core/components/backend.php:1316

fw:backend:enqueue-options-on-frontend

🧪 filter · 4 call sites

Filters whether the options-UI static assets may register on the front end, for front-end editors like the Live Page Editor.

add_filter( 'fw:backend:enqueue-options-on-frontend', $callback );

Fired in: framework/core/components/backend.php:282

fw:backend:option-render:data

🧪 filter

Filters the data array passed to an option's render view just before the option markup is generated.

add_filter( 'fw:backend:option-render:data', $callback );

Fired in: framework/core/components/backend.php:1730

fw:option-modal:default:reset-btn-disabled

🧪 filter

Filters whether the options modal's default Reset button is disabled.

add_filter( 'fw:option-modal:default:reset-btn-disabled', $callback );

Fired in: framework/core/components/backend.php:527

fw:render_options:option_value

🧪 filter

Filters an early override for an option's value during backend rendering; a non-null return replaces the computed value.

add_filter( 'fw:render_options:option_value', $callback );

Fired in: framework/core/components/backend.php:1589

← Back to Hooks overview