Widget Options 4.2.7 has 7 actions and 95 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Widget Options fires an action
add_action( 'extended_widget_opts_tabcontent', function( $args ) {
// Your code runs here.
}, 10, 1 );
// Change a value Widget Options is about to use
add_filter( 'widget_options_site_url', function( $trailingslashit ) {
// Change $trailingslashit here.
return $trailingslashit;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
widget_options_site_url
filterapply_filters( 'widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE) . '?utm_source=wordpressadmin&utm_medium=importexport&utm_campaign=titlelink' ); -
wpml_object_id
filterapply_filters( 'wpml_object_id', get_query_var('cat'), 'category', true, $default_language ); -
apply_filters( 'widget_options_logic_override', $display_logic ); -
apply_filters( 'extended_widget_options_logic_override', $display_logic ); -
acf/field_group/get_fields
filterapply_filters( 'acf/field_group/get_fields', array(), $group['id'] ); -
acf/get_field_groups
filterapply_filters( 'acf/get_field_groups', array() ); -
widget_options_upgrade_url
filterapply_filters( 'widget_options_upgrade_url', $upgrade_url ); -
apply_filters( 'widget_options_visibility_404', $hidden ); -
apply_filters( 'widget_options_visibility_page', $hidden ); -
apply_filters( 'widget_options_visibility_page_block', $hidden ); -
wpml_default_language
filterapply_filters( 'wpml_default_language', NULL ); -
apply_filters( 'cache_widgetopts_ajax_page_search', true ); -
apply_filters( 'cache_widgetopts_ajax_taxonomy_search', true ); -
apply_filters( 'extended_widget_options_logic_override_block', $display_logic ); -
do_action( 'extended_widget_opts_tabcontent', $args ); -
extended_widget_opts_tabs
actiondo_action( 'extended_widget_opts_tabs', $args ); -
do_action( 'widget_options_before_ajax_print', sanitize_text_field($_POST['method']) ); -
apply_filters( 'widget_options_devices_desktop', $hidden ); -
apply_filters( 'widget_options_devices_mobile', $hidden ); -
apply_filters( 'widget_options_logic_override_block', $display_logic ); -
widget_options_support_url
filterapply_filters( 'widget_options_support_url', 'https://wordpress.org/support/plugin/widget-options/' ); -
apply_filters( 'widget_options_type_string_attribute', ['luckywp/tableofcontents'] ); -
apply_filters( 'widget_options_visibility_404_block', $hidden ); -
apply_filters( 'widget_options_visibility_acf', $hidden ); -
apply_filters( 'widget_options_visibility_acf_block', $hidden ); -
apply_filters( 'widget_options_visibility_archives', $hidden ); -
apply_filters( 'widget_options_visibility_archives_block', $hidden ); -
apply_filters( 'widget_options_visibility_blog', $hidden ); -
apply_filters( 'widget_options_visibility_blog_block', $hidden ); -
apply_filters( 'widget_options_visibility_categories', $hidden ); -
apply_filters( 'widget_options_visibility_categories_block', $hidden ); -
apply_filters( 'widget_options_visibility_home', $hidden ); -
apply_filters( 'widget_options_visibility_home_block', $hidden ); -
apply_filters( 'widget_options_visibility_post_category', $hidden ); -
apply_filters( 'widget_options_visibility_post_type_archive_block', $hidden ); -
apply_filters( 'widget_options_visibility_search', $hidden ); -
apply_filters( 'widget_options_visibility_search_block', $hidden ); -
apply_filters( "widget_options_visibility_single_block_{$tax_value}", $hidden ); -
apply_filters( 'widget_options_visibility_tags', $hidden ); -
apply_filters( 'widget_options_visibility_tags_block', $hidden ); -
apply_filters( 'widget_options_visibility_taxonomies', $hidden ); -
apply_filters( 'widget_options_visibility_taxonomies_block', $hidden ); -
apply_filters( 'widget_options_visibility_types', $hidden ); -
apply_filters( 'widget_options_visibility_types_block', $hidden ); -
do_action( 'widgetopts_after_render_import' ); -
apply_filters( 'widgetopts_allowed_php_functions', $allowed_functions ); -
apply_filters( 'widgetopts_beaver_visibility_404', $hidden ); -
apply_filters( 'widgetopts_beaver_visibility_acf', $hidden ); -
apply_filters( 'widgetopts_beaver_visibility_archives', $hidden ); -
apply_filters( 'widgetopts_beaver_visibility_blog', $hidden ); -
apply_filters( 'widgetopts_beaver_visibility_home', $hidden ); -
apply_filters( 'widgetopts_beaver_visibility_page', $hidden ); -
apply_filters( 'widgetopts_beaver_visibility_search', $hidden ); -
apply_filters( 'widgetopts_beaver_visibility_single', $hidden ); -
apply_filters( 'widgetopts_beaver_visibility_single_category', $hidden ); -
apply_filters( 'widgetopts_beaver_visibility_tags', $hidden ); -
apply_filters( 'widgetopts_beaver_visibility_taxonomies', $hidden ); -
do_action( 'widgetopts_before_render_import' ); -
apply_filters( 'widgetopts_elementor_section_id', array( 'section_image', 'section_advanced', 'section_title', 'section_editor', 'section_video', 'section_button', 'section_divider', 'section_spacer', 'section_map', 'section_icon', 'section_gallery', 'section_image_carousel', 'section_icon_list', 'section_counter', 'section_testimonial', 'section_tabs', 'section_toggle', 'section_social_icon', 'section_alert', 'section_audio', 'section_shortco... ); -
apply_filters( 'widgetopts_elementor_visibility_acf', $hidden ); -
apply_filters( 'widgetopts_elementor_visibility_archives', $hidden ); -
apply_filters( 'widgetopts_elementor_visibility_blog', $hidden ); -
apply_filters( 'widgetopts_elementor_visibility_categories', $hidden ); -
apply_filters( 'widgetopts_elementor_visibility_home', $hidden ); -
apply_filters( 'widgetopts_elementor_visibility_page', $hidden ); -
apply_filters( 'widgetopts_elementor_visibility_search', $hidden ); -
apply_filters( 'widgetopts_elementor_visibility_single', $hidden ); -
apply_filters( 'widgetopts_elementor_visibility_single_category', $hidden ); -
apply_filters( 'widgetopts_elementor_visibility_tags', $hidden ); -
apply_filters( 'widgetopts_elementor_visibility_taxonomies', $hidden ); -
widgetopts_exclude_jqueryui
filterapply_filters( 'widgetopts_exclude_jqueryui', array('toplevel_page_et_divi_options', 'toplevel_page_wpcf7', 'edit.php') ); -
widgetopts_exported_data
filterapply_filters( 'widgetopts_exported_data', $encoded ); -
widgetopts_exported_file
filterapply_filters( 'widgetopts_exported_file', $filename ); -
widgetopts_get_classes
filterapply_filters( 'widgetopts_get_classes', $classes ); -
widgetopts_get_global_pages
filterapply_filters( 'widgetopts_get_global_pages', $pages ); -
apply_filters( 'widgetopts_get_global_taxonomies', $taxonomies ); -
widgetopts_get_global_types
filterapply_filters( 'widgetopts_get_global_types', $types ); -
widgetopts_get_option
filterapply_filters( 'widgetopts_get_option', $value, $key, $default ); -
widgetopts_get_option_{$key}
filterapply_filters( "widgetopts_get_option_{$key}", $value, $key, $default ); -
widgetopts_get_settings
filterapply_filters( 'widgetopts_get_settings', $settings ); -
widgetopts_global_categories
filterapply_filters( 'widgetopts_global_categories', $categories ); -
widgetopts_imported_data
filterapply_filters( 'widgetopts_imported_data', $data ); -
widgetopts_imported_results
filterapply_filters( 'widgetopts_imported_results', $results ); -
apply_filters( 'widgetopts_is_active_sidebar_support', true ); -
apply_filters( 'widgetopts_load_liveFilter_scripts', array('widgets.php', 'nav-menus.php') ); -
apply_filters( 'widgetopts_load_option-tabs_scripts', array('widgets.php', 'customize.php', 'nav-menus.php') ); -
apply_filters( 'widgetopts_load_settings_scripts', array('settings_page_widgetopts_plugin_settings') ); -
widgetopts_module_cards
actiondo_action( 'widgetopts_module_cards' ); -
widgetopts_module_sidebar
actiondo_action( 'widgetopts_module_sidebar' ); -
widgetopts_priority
filterapply_filters( 'widgetopts_priority', 90 ); -
apply_filters( 'widgetopts_siteorigin_panels_widget_classes', array_merge($classes, $get_classes), $widget_info ); -
widgetopts_supported_widgets
filterapply_filters( 'widgetopts_supported_widgets', $available_widgets ); -
apply_filters( 'widgetopts_unencoded_export_data', $sidebars_widget_instances ); -
apply_filters( 'widgetopts_update_global_categories', $categories ); -
apply_filters( 'widgetopts_update_global_pages', $pages ); -
apply_filters( 'widgetopts_update_global_taxonomies', $taxonomies ); -
apply_filters( 'widgetopts_update_global_types', $types ); -
widgetopts_update_option
filterapply_filters( 'widgetopts_update_option', $value, $key ); -
widgetopts_update_settings
filterapply_filters( 'widgetopts_update_settings', $settings ); -
apply_filters( 'widgetopts_validate_allowed_commands', $is_valid ); -
widgetopts_welcome_cap
filterapply_filters( 'widgetopts_welcome_cap', 'manage_options' ); -
widgetopts_widget_instances
filterapply_filters( 'widgetopts_widget_instances', $widget_instances );
Generated from Widget Options's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: