apply_block_hooks_to_content()wp-includes/blocks.php | Runs the hooked blocks algorithm on the given content.
|
inject_ignored_hooked_blocks_metadata_attributes()wp-includes/block-template-utils.php | Inject ignoredHookedBlocks metadata attributes into a template or template part.
|
WP_Block_Patterns_Registry::prepare_content()wp-includes/class-wp-block-patterns-registry.php | Prepares the content of a block pattern. If hooked blocks are registered, they get injected into the pattern, when they met the defined criteria.
|
_build_block_template_result_from_file()wp-includes/block-template-utils.php | Builds a unified template object based on a theme file.
|
_build_block_template_result_from_post()wp-includes/block-template-utils.php | Builds a unified template object based a post Object.
|
core_auto_updates_settings()wp-admin/update-core.php | Display WordPress auto-updates settings.
|
WP_Site_Health::detect_plugin_theme_auto_update_issues()wp-admin/includes/class-wp-site-health.php | Checks for potential issues with plugin and theme auto-updates.
|
WP_Site_Health::check_wp_version_check_exists()wp-admin/includes/class-wp-site-health.php | Tests whether wp_version_check is blocked.
|
WP_Site_Health_Auto_Updates::test_wp_version_check_attached()wp-admin/includes/class-wp-site-health-auto-updates.php | Checks if updates are intercepted by a filter.
|
update_sitemeta_cache()wp-includes/ms-site.php | Updates metadata cache for list of site IDs.
|
do_blocks()wp-includes/blocks.php | Parses dynamic blocks out of post_content and re-renders them.
|
_restore_wpautop_hook()wp-includes/blocks.php | If do_blocks() needs to remove wpautop() from the the_content filter, this re-adds it afterwards, for subsequent the_content usage.
|
wpdb::placeholder_escape()wp-includes/class-wpdb.php | Generates and returns a placeholder escape string for use in queries returned by ::prepare().
|
apply_filters_deprecated()wp-includes/plugin.php | Fires functions attached to a deprecated filter hook.
|
WP_Customize_Nav_Menu_Item_Setting::preview()wp-includes/customize/class-wp-customize-nav-menu-item-setting.php | Handle previewing the setting.
|
WP_MS_Sites_List_Table::column_plugins()wp-admin/includes/class-wp-ms-sites-list-table.php | Handles the plugins column output.
|
Core_Upgrader::upgrade()wp-admin/includes/class-core-upgrader.php | Upgrades WordPress core.
|
WP_MS_Sites_List_Table::get_columns()wp-admin/includes/class-wp-ms-sites-list-table.php | |
map_meta_cap()wp-includes/capabilities.php | Maps a capability to the primitive capabilities required of the given user to satisfy the capability being checked.
|
WP::build_query_string()wp-includes/class-wp.php | Sets the query string property based off of the query variable property.
|
WP_Widget_Text::widget()wp-includes/widgets/class-wp-widget-text.php | Outputs the content for the current Text widget instance.
|
WP_Embed::shortcode()wp-includes/class-wp-embed.php | The do_shortcode() callback function.
|
do_shortcode()wp-includes/shortcodes.php | Searches content for shortcodes and filter shortcodes through their hooks.
|
has_action()wp-includes/plugin.php | Checks if any action has been registered for a hook.
|
wp_update_comment()wp-includes/comment.php | Updates an existing comment in the database.
|
sanitize_meta()wp-includes/meta.php | Sanitizes meta value.
|
register_meta()wp-includes/meta.php | Registers a meta key.
|
_WP_Editors::editor()wp-includes/class-wp-editor.php | Outputs the HTML for a single instance of the editor.
|
Basic Example
add_filter() calls the same _wp_filter_build_unique_id() function and re-assigns the method/function parameter to the index array.
It is very likely that calling add_filter() with the same parameter list is faster than first checking if the method/function is already registered with has_filter( , ) before adding it with add_filter( , );
I am guessing the best use-case for has_filter() is to check if a filter has ANY registered methods versus checking that a specific method exists prior to re-registering it with add_filter() .