Yoast SEO 28.8 has 52 actions and 310 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 Yoast SEO fires an action
add_action( 'wpseo_indexables_unindexed_calculated', function( $arg1, $count ) {
// Your code runs here.
}, 10, 2 );
// Change a value Yoast SEO is about to use
add_filter( 'wpseo_frontend_presentation', function( $presentation, $context ) {
// Change $presentation here.
return $presentation;
}, 10, 2 );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
-
wpseo_frontend_presentation
filter/** * This filter is documented in src/integrations/front-end-integration.php */ apply_filters( 'wpseo_frontend_presentation', $context->presentation, $context ); -
wpseo_schema_article_types
filter/** * This filter is documented in inc/options/class-wpseo-option-titles.php */ apply_filters( 'wpseo_schema_article_types', Schema_Types::ARTICLE_TYPES ); -
wpseo_cornerstone_post_types
filter/** * Filter: 'wpseo_cornerstone_post_types' - Filters post types to exclude the * cornerstone feature for. */ apply_filters( 'wpseo_cornerstone_post_types', parent::get_post_types() ); -
/** * The `wpseo_force_creating_and_using_attachment_indexables` filter is * documented in indexable-link-builder.php */ apply_filters( 'wpseo_force_creating_and_using_attachment_indexables', false ); -
/** * Action: 'wpseo_indexables_unindexed_calculated' - sets an option to * timestamp when there are no unindexed indexables left. */ do_action( 'wpseo_indexables_unindexed_calculated', static::UNINDEXED_COUNT_TRANSIENT, $count ); -
wpseo_sitemap_entry
filter/** * This filter is documented at * inc/sitemaps/class-post-type-sitemap-provider.php */ apply_filters( 'wpseo_sitemap_entry', $url, 'user', $user ); -
wpseo_use_page_analysis
filter/** * Filter: 'wpseo_use_page_analysis' Determines if the analysis should be * enabled. */ apply_filters( 'wpseo_use_page_analysis', true ); -
wpseo_adjacent_rel_url
filter/** * Filter: 'wpseo_adjacent_rel_url' - Allow filtering of the rel next URL put * out by Yoast SEO. */ apply_filters( 'wpseo_adjacent_rel_url', $this->presentation->rel_next, 'next', $this->presentation ); -
/** * Filter: 'wpseo_always_register_metaboxes_on_admin' - Allow developers to * change whether the WPSEO metaboxes are only registered on the typical pages * (lean loading) or always registered when in admin. */ apply_filters( 'wpseo_always_register_metaboxes_on_admin', false ); -
wpseo_debug_markers
filter/** * Filter: 'wpseo_debug_markers' - Allow disabling the debug markers. */ apply_filters( 'wpseo_debug_markers', true ); -
wpseo_enable_tracking
filter/** * Filter: 'wpseo_enable_tracking' - Enables the data tracking of Yoast SEO * Premium and add-ons. */ apply_filters( 'wpseo_enable_tracking', false ); -
/** * Filter 'wpseo_image_attribute_containing_id' - Allows filtering what * attribute will be used to extract image IDs from. */ apply_filters( 'wpseo_image_attribute_containing_id', 'class' ); -
wpseo_indexing_data
filter/** * Filter: 'wpseo_indexing_data' Filter to adapt the data used in the indexing * process. */ apply_filters( 'wpseo_indexing_data', $data ); -
wpseo_json_ld_output
filter/** * Filter: 'wpseo_json_ld_output' - Allows disabling Yoast's schema output * entirely. */ apply_filters( 'wpseo_json_ld_output', $deprecated_data, '' ); -
/** * Filters which taxonomies for which the user can choose the primary term. */ apply_filters( 'wpseo_primary_term_taxonomies', $all_taxonomies, $post_type, $all_taxonomies ); -
wpseo_schema_article_type
filter/** * Filter: 'wpseo_schema_article_type' - Allow changing the Article type. */ apply_filters( 'wpseo_schema_article_type', $additional_type, $this->indexable ); -
wpseo_schema_person_user_id
filter/** * Filter: 'wpseo_schema_person_user_id' - Allows filtering of user ID used for * person output. */ apply_filters( 'wpseo_schema_person_user_id', $user_id ); -
/** * Filter the setting of excluding empty terms from the XML sitemap. */ apply_filters( 'wpseo_sitemap_exclude_empty_terms', true, $taxonomy_names ); -
/** * Filter the setting of excluding empty terms from the XML sitemap for a * specific taxonomy. */ apply_filters( 'wpseo_sitemap_exclude_empty_terms_taxonomy', $hide_empty, $taxonomy_name ); -
/** * Filter - Allows excluding images from the XML sitemap. */ apply_filters( 'wpseo_xml_sitemap_include_images', true ); -
yoast_seo_development_mode
filter/** * Filter the Yoast SEO development mode. */ apply_filters( 'yoast_seo_development_mode', $development_mode ); -
Yoast\WP\SEO\ai_api_url
filter/** * Filter: 'Yoast\WP\SEO\ai_api_url' - Replaces the default URL for the AI API * with a custom one. */ apply_filters( 'Yoast\WP\SEO\ai_api_url', $this->base_url ); -
/** * Filter: 'Yoast\WP\SEO\ai_suggestions_timeout' - Replaces the default timeout * with a custom one, for testing purposes. */ apply_filters( 'Yoast\WP\SEO\ai_suggestions_timeout', 60 ); -
/** * Filter: 'Yoast\WP\SEO\workouts_options' - Allows adding workouts options by * the add-ons. */ apply_filters( 'Yoast\WP\SEO\workouts_options', $workouts_option ); -
{$capability}_roles
filter/** * Filter: Allow changing roles that a capability is added to. */ apply_filters( "{$capability}_roles", $roles ); -
add_extra_wpseo_meta_fields
filter/** * Allow add-on plugins to register their meta fields for management by this * class. Calls to add_filter() must be made before plugins_loaded prio 14. */ apply_filters( 'add_extra_wpseo_meta_fields', [] ); -
disable_wpseo_json_ld_search
filter/** * Filter: 'disable_wpseo_json_ld_search' - Allow disabling of the json+ld * output. */ apply_filters( 'disable_wpseo_json_ld_search', false ); -
nofollow_rss_links
filter/** * Filter: 'nofollow_rss_links' - Allow the developer to determine whether or * not to follow the links in the bits Yoast SEO adds to the RSS feed, defaults * to false. */ apply_filters( 'nofollow_rss_links', false ); -
postmeta_form_limit
filter/** * Filters the number of custom fields to retrieve for the drop-down in the * Custom Fields meta box. */ apply_filters( 'postmeta_form_limit', 30 ); -
sanitize_text_field
filter/** * Filter a sanitized text field string. */ apply_filters( 'sanitize_text_field', $filtered, $value ); -
script_loader_src
filter/** * This filter is documented in wp-includes/class.wp-scripts.php */ apply_filters( 'script_loader_src', $src, $handle ); -
/** * Filter: 'wpseo_{$content_type}_filtering_taxonomy' - Allows overriding which * taxonomy filters the content type. */ apply_filters( "wpseo_{$content_type}_filtering_taxonomy", '' ); -
wpseo_accessible_post_types
filter/** * Filter: 'wpseo_accessible_post_types' - Allow changing the accessible post * types. */ apply_filters( 'wpseo_accessible_post_types', $post_types ); -
/** * Action: Adds the possibility to add additional to be cleaned objects. */ do_action( 'wpseo_add_cleanup_counts_to_indexable_bucket', $to_be_cleaned_indexable_bucket ); -
/** * Filter: wpseo_add_opengraph_additional_images - Allows to add additional * images to the Open Graph tags. */ apply_filters( 'wpseo_add_opengraph_additional_images', $image_container ); -
wpseo_add_opengraph_images
filter/** * Filter: wpseo_add_opengraph_images - Allow developers to add images to the * Open Graph tags. */ apply_filters( 'wpseo_add_opengraph_images', $image_container ); -
/** * Filter: Adds the possibility to add more additional contactmethods in the * user profile. */ apply_filters( 'wpseo_additional_contactmethods', $additional_contactmethods ); -
wpseo_ai_auth_method
filter/** * Filter: 'wpseo_ai_auth_method' - Pin a specific AI auth strategy for QA / * staged rollout. */ apply_filters( 'wpseo_ai_auth_method', null, $user ); -
/** * Filter 'wpseo_aioseo_<identifier>_import_cursor' - Allow filtering the value * of the aioseo settings import cursor. */ apply_filters( "wpseo_aioseo_{$this->get_type()}_import_cursor", $cursor ); -
/** * Filter 'wpseo_aioseo_<identifier>_indexation_limit' - Allow filtering the * number of settings imported during each importing pass. */ apply_filters( "wpseo_aioseo_{$this->get_type()}_indexation_limit", 25 ); -
wpseo_aioseo_cleanup_limit
filter/** * Filter 'wpseo_aioseo_cleanup_limit' - Allow filtering the number of posts * indexed during each indexing pass. */ apply_filters( 'wpseo_aioseo_cleanup_limit', 25 ); -
/** * Filter 'wpseo_aioseo_post_cursor' - Allow filtering the value of the aioseo * post import cursor. */ apply_filters( 'wpseo_aioseo_post_import_cursor', $cursor ); -
/** * Filter 'wpseo_aioseo_post_indexation_limit' - Allow filtering the number of * posts indexed during each indexing pass. */ apply_filters( 'wpseo_aioseo_post_indexation_limit', 25 ); -
/** * Filter 'wpseo_aioseo_cleanup_limit' - Allow filtering the number of * validations during each action pass. */ apply_filters( 'wpseo_aioseo_validation_limit', 25 ); -
wpseo_allow_system_file_edit
filter/** * Filter: 'wpseo_allow_system_file_edit' - Allow developers to change whether * the editing of .htaccess and robots.txt is allowed. */ apply_filters( 'wpseo_allow_system_file_edit', $allowed ); -
/** * Filter: 'wpseo_allowed_dismissable_alerts' - List of allowed dismissable * alerts. */ apply_filters( 'wpseo_allowed_dismissable_alerts', [] ); -
/** * Allows the developer to change the target redirection URL for attachments. */ apply_filters( 'wpseo_attachment_redirect_url', \wp_get_attachment_url( \get_queried_object_id() ), \get_queried_object() ); -
/** * Filters the array of post types that are shown on an author's archive. */ apply_filters( 'wpseo_author_archive_post_types', [ 'post' ] ); -
wpseo_breadcrumb_links
filter/** * Filter: 'wpseo_breadcrumb_links' - Allow the developer to filter the Yoast * SEO breadcrumb links, add to them, change order, etc. */ apply_filters( 'wpseo_breadcrumb_links', $crumbs ); -
wpseo_breadcrumb_output
filter/** * Filter: 'wpseo_breadcrumb_output' - Allow changing the HTML output of the * Yoast SEO breadcrumbs class. */ apply_filters( 'wpseo_breadcrumb_output', $output, $this->presentation ); -
/** * Filter: 'wpseo_breadcrumb_output_class' - Allow changing the HTML class on * the Yoast SEO breadcrumbs wrapper element. */ apply_filters( 'wpseo_breadcrumb_output_class', '' ); -
wpseo_breadcrumb_output_id
filter/** * Filter: 'wpseo_breadcrumb_output_id' - Allow changing the HTML ID on the * Yoast SEO breadcrumbs wrapper element. */ apply_filters( 'wpseo_breadcrumb_output_id', '' ); -
wpseo_breadcrumb_single_link
filter/** * Filter: 'wpseo_breadcrumb_single_link' - Allow changing of each link being * put out by the Yoast SEO breadcrumbs class. */ apply_filters( 'wpseo_breadcrumb_single_link', $link, $breadcrumb ); -
/** * Filter: 'wpseo_breadcrumb_single_link_info' - Allow developers to filter the * Yoast SEO Breadcrumb link information. */ apply_filters( 'wpseo_breadcrumb_single_link_info', $link_info, $index, $crumbs ); -
/** * Filter the type of sitemap to build. */ apply_filters( 'wpseo_build_sitemap_post_type', $type ); -
/** * Filter: 'wpseo_bulk_editor_excluded_post_types' - Allows excluding post * types from the bulk editor. */ apply_filters( 'wpseo_bulk_editor_excluded_post_types', [ 'attachment' ] ); -
/** * Filter: 'wpseo_bulk_editor_post_context' - Allows add-ons to supply extra * context shown alongside a post in the bulk editor table (e.g. a product * short description for WooCommerce products). */ apply_filters( 'wpseo_bulk_editor_post_context', [], $post_id, $content_type ); -
/** * Filter: 'wpseo_bulk_editor_post_images' - Allows add-ons to supply the * images shown for a post. */ apply_filters( 'wpseo_bulk_editor_post_images', [], $post_id, $content_type ); -
wpseo_canonical
filter/** * Filter: 'wpseo_canonical' - Allow filtering of the canonical URL put out by * Yoast SEO. */ apply_filters( 'wpseo_canonical', $this->presentation->canonical, $this->presentation ); -
/** * Adapt the active applicable filters on the posts overview. */ apply_filters( 'wpseo_change_applicable_filters', $active_filters ); -
/** * Adapt the meta query used to filter the post overview on keyphrase. */ apply_filters( 'wpseo_change_keyphrase_filter_in_request', $this->get_keyword_filter( $current_keyword_filter ), $current_keyword_filter ); -
wpseo_change_order_by
filter/** * Adapt the order by part of the query on the posts overview. */ apply_filters( 'wpseo_change_order_by', $order_by, $order_by_column ); -
/** * Filter: 'wpseo_chunk_bulked_insert_queries' - Allow filtering the chunk size * of each bulked INSERT query. */ apply_filters( 'wpseo_chunk_bulk_insert_queries', 100 ); -
wpseo_cleanup_tasks
filter/** * Filter: Adds the possibility to add additional indexable cleanup functions. */ apply_filters( 'wpseo_cleanup_tasks', [] ); -
/** * Filter: 'wpseo_content_meta_section_content' - Allow filtering the metabox * content before outputting. */ apply_filters( 'wpseo_content_meta_section_content', '' ); -
/** * Filter: 'wpseo_cron_indexing_limit_size' - Adds the possibility to limit the * number of items that are indexed when in cron action. */ apply_filters( 'wpseo_cron_indexing_limit_size', 15 ); -
/** * Filter: 'wpseo_cron_link_indexing_limit_size' - Adds the possibility to * limit the number of links that are indexed when in cron action. */ apply_filters( 'wpseo_cron_link_indexing_limit_size', 3 ); -
wpseo_cron_query_limit_size
filter/** * Filter: Adds the possibility to limit the number of items that are deleted * from the database on cleanup. */ apply_filters( 'wpseo_cron_query_limit_size', 1000 ); -
/** * Filter: 'wpseo_custom_fields_pre_query' - Filters the custom-fields lookup * before the database query runs. */ apply_filters( 'wpseo_custom_fields_pre_query', null, $limit ); -
/** * Filter: 'wpseo_custom_site_kit_base_date' - Allow the base date for Site Kit * requests to be dynamically set. */ apply_filters( 'wpseo_custom_site_kit_base_date', 'now' ); -
wpseo_debug_json_data
filter/** * Filter the Yoast SEO development mode. */ apply_filters( 'wpseo_debug_json_data', $data ); -
/** * Filter: 'wpseo_disable_adjacent_rel_links' - Allows disabling of Yoast * adjacent links if this is being handled by other code. */ apply_filters( 'wpseo_disable_adjacent_rel_links', false ); -
/** * Filter to disable priming the post, term and featured-image caches for the * sitemap. */ apply_filters( 'wpseo_disable_xml_sitemap_cache_priming', false ); -
wpseo_do_sitemap_{$type}
action/** * Fires custom handler, if hooked to generate sitemap for the type. */ do_action( "wpseo_do_sitemap_{$type}" ); -
/** * Filters the value of the `dynamic_permalinks` option. */ apply_filters( 'wpseo_dynamic_permalinks_enabled', $this->options_helper->get( 'dynamic_permalinks', false ) ); -
/** * Filter: Adds the possibility to add extra editor specific replacement * variables. */ apply_filters( 'wpseo_editor_specific_replace_vars', $this->replacement_variables ); -
/** * Filter: 'wpseo_enable_ai_content_planner_inline_banner' - Allows hiding the * AI Content Planner inline banner site-wide. */ apply_filters( 'wpseo_enable_ai_content_planner_inline_banner', true ); -
/** * Filter to determine if the markers should be enabled or not. */ apply_filters( 'wpseo_enable_assessment_markers', true ); -
wpseo_enable_feature
filter/** * Filters the list of currently enabled feature flags. */ apply_filters( 'wpseo_enable_feature', $enabled_features ); -
/** * Filter: 'wpseo_enable_structured_data_blocks' - Allows disabling Yoast's * schema blocks entirely. */ apply_filters( 'wpseo_enable_structured_data_blocks', true ); -
/** * Filter if XML sitemap transient cache is enabled. */ apply_filters( 'wpseo_enable_xml_sitemap_transient_caching', false ); -
wpseo_enhanced_slack_data
filter/** * Filter: 'wpseo_enhanced_slack_data' - Allows filtering of the enhanced data * for sharing on Slack. */ apply_filters( 'wpseo_enhanced_slack_data', $data, $this->presentation ); -
/** * Filter: 'wpseo_exclude_from_sitemap_by_post_ids' - Allow extending and * modifying the posts to exclude. */ apply_filters( 'wpseo_exclude_from_sitemap_by_post_ids', $excluded_posts_ids ); -
/** * Filter: 'wpseo_exclude_from_sitemap_by_term_ids' - Allow excluding terms by * ID. */ apply_filters( 'wpseo_exclude_from_sitemap_by_term_ids', [] ); -
wpseo_extract_id_pattern
filter/** * Filter 'wpseo_extract_id_pattern' - Allows filtering the regex patern to be * used to extract image IDs from class/attribute names. */ apply_filters( 'wpseo_extract_id_pattern', '/(?<!\S)wp-image-(\d+)(?!\S)/i' ); -
wpseo_feature_toggles
filter/** * Filter to add feature toggles from add-ons. */ apply_filters( 'wpseo_feature_toggles', $feature_toggles ); -
/** * Filter 'wpseo_force_skip_image_content_parsing' - Filters if we should force * skip scanning the content to parse images. This filter can be used if the * regex gives a faster result than scanning the code. */ apply_filters( 'wpseo_force_skip_image_content_parsing', $should_not_parse_content ); -
/** * Filter: Allow changing the default page id. */ apply_filters( 'wpseo_frontend_page_type_simple_page_id', 0 ); -
/** * Filter 'wpseo_frontend_presenter_classes' - Allow filtering presenters in or * out of the request. */ apply_filters( 'wpseo_frontend_presenter_classes', $presenters, $page_type ); -
wpseo_frontend_presenters
filter/** * Filter 'wpseo_frontend_presenters' - Allow filtering the presenter instances * in or out of the request. */ apply_filters( 'wpseo_frontend_presenters', $presenters, $context ); -
/** * Action: 'wpseo_post_update_enable_tracking' - Allows for Hiive event * tracking. */ do_action( 'wpseo_ftc_post_update_enable_tracking', $params['tracking'], $option_value, ! $success ); -
/** * Action: 'wpseo_post_update_site_representation' - Allows for Hiive event * tracking. */ do_action( 'wpseo_ftc_post_update_site_representation', $params, $old_values, $failures ); -
/** * Action: 'wpseo_post_update_social_profiles' - Allows for Hiive event * tracking. */ do_action( 'wpseo_ftc_post_update_social_profiles', $params, $old_values, $failures ); -
wpseo_handle_import
filter/** * Allow custom import actions. */ apply_filters( 'wpseo_handle_import', $yoast_seo_import ); -
/** * Filter: 'wpseo_helpscout_beacon_settings' - Allows overriding the HelpScout * beacon settings. */ apply_filters( 'wpseo_helpscout_beacon_settings', $filterable_helpscout_setting ); -
wpseo_helpscout_show_beacon
filter/** * Filter: 'wpseo_helpscout_show_beacon' - Allows overriding whether we show * the HelpScout beacon. */ apply_filters( 'wpseo_helpscout_show_beacon', $return ); -
wpseo_hide_version
filter/** * Filter: 'wpseo_hide_version' - can be used to hide the Yoast SEO version in * the debug marker (only available in Yoast SEO Premium). */ apply_filters( 'wpseo_hide_version', false ); -
wpseo_home_url
action/** * Action: 'wpseo_home_url' - Allows overriding of the home URL. */ do_action( 'wpseo_home_url' ); -
wpseo_image_data
filter/** * Filter: 'wpseo_image_data' - Filter image data. */ apply_filters( 'wpseo_image_data', $image, $attachment_id ); -
/** * Filter: 'wpseo_image_image_weight_limit' - Determines what the maximum * weight (in bytes) of an image is allowed to be, default is 2 MB. */ apply_filters( 'wpseo_image_image_weight_limit', 2_097_152 ); -
wpseo_image_sizes
filter/** * Filter: 'wpseo_image_sizes' - Determines which image sizes we'll loop * through to get an appropriate image. */ apply_filters( 'wpseo_image_sizes', [ 'full', 'large', 'medium_large' ] ); -
wpseo_import_message
filter/** * Allow customization of import/export message. */ apply_filters( 'wpseo_import_message', $yoast_seo_message ); -
/** * WARNING: This hook is intended for internal use only. Don't use it in your * code as it will be removed shortly. */ do_action( 'wpseo_import_other_plugins_internal' ); -
wpseo_import_tab_content
action/** * Allow adding a custom import tab. */ do_action( 'wpseo_import_tab_content' ); -
wpseo_import_tab_header
action/** * Allow adding a custom import tab header. */ do_action( 'wpseo_import_tab_header' ); -
wpseo_importing_data
filter/** * Filter: 'wpseo_importing_data' Filter to adapt the data used in the import * process. */ apply_filters( 'wpseo_importing_data', $data ); -
/** * Filter: Adds the possibility to add additional indexation actions to be * included in the count routine. */ apply_filters( 'wpseo_indexable_collector_add_indexation_actions', $this->indexation_actions ); -
/** * Filter: 'wpseo_indexable_excluded_post_types' - Allows excluding posts of a * certain post type from being saved to the indexable table. */ apply_filters( 'wpseo_indexable_excluded_post_types', [] ); -
/** * Filter: 'wpseo_indexable_excluded_taxonomies' - Allow developers to prevent * a certain taxonomy from being saved to the indexable table. */ apply_filters( 'wpseo_indexable_excluded_taxonomies', [] ); -
/** * Filter: 'wpseo_indexable_forced_included_post_types' - Allows force * including posts of a certain post type to be saved to the indexable table. */ apply_filters( 'wpseo_indexable_forced_included_post_types', $included_post_types ); -
/** * Fires when an indexable could not be built because of an unexpected error. */ do_action( 'wpseo_indexable_indexing_failed', $indexable->object_id, $indexable->object_type, $indexable->object_sub_type, $exception ); -
/** * Filter: 'wpseo_indexables_indexation_alert' - Allow developers to filter the * reason of the indexation */ apply_filters( 'wpseo_indexables_indexation_alert', $text, $reason ); -
/** * Filter: 'wpseo_indexing_get_limited_unindexed_count' - Allow changing the * amount of unindexed objects, and allow for a maximum number of items counted * to improve performance. */ apply_filters( 'wpseo_indexing_get_limited_unindexed_count', $unindexed_count, $limit ); -
/** * Filter: 'wpseo_indexing_get_limited_unindexed_count_background' - Allow * changing the amount of unindexed objects that can be indexed in the * background, and allow for a maximum number of items counted to improve * performance. */ apply_filters( 'wpseo_indexing_get_limited_unindexed_count_background', $unindexed_count, $limit ); -
/** * Filter: 'wpseo_indexing_get_unindexed_count' - Allow changing the amount of * unindexed objects. */ apply_filters( 'wpseo_indexing_get_unindexed_count', $unindexed_count ); -
wpseo_integration_toggles
filter/** * Filter to add integration toggles from add-ons. */ apply_filters( 'wpseo_integration_toggles', $integration_toggles ); -
wpseo_introductions
filter/** * Filter: Adds the possibility to add additional introductions to be included. */ apply_filters( 'wpseo_introductions', $introductions ); -
wpseo_is_markdown_enabled
filter/** * Filters whether markdown support is active in the readability- and * seo-analysis. */ apply_filters( 'wpseo_is_markdown_enabled', $is_markdown ); -
wpseo_json_ld
action/** * Action: 'wpseo_json_ld' - Output Schema before the main schema from Yoast * SEO is output. */ do_action( 'wpseo_json_ld' ); -
wpseo_json_ld_search_url
filter/** * Filter: 'wpseo_json_ld_search_url' - Allows filtering of the search URL for * Yoast SEO. */ apply_filters( 'wpseo_json_ld_search_url', $this->context->site_url . '?s={search_term_string}' ); -
wpseo_link_indexing_limit
filter/** * Filter 'wpseo_link_indexing_limit' - Allow filtering the number of texts * indexed during each link indexing pass. */ apply_filters( 'wpseo_link_indexing_limit', 5 ); -
/** * Filter: 'wpseo_llmstxt_encoding_prefix' - Allows editing the Byte Order Mark * (BOM) for UTF-8 we prepend to the llmst.txt file. */ apply_filters( 'wpseo_llmstxt_encoding_prefix', "\xEF\xBB\xBF" ); -
/** * Filter: 'wpseo_llmstxt_filesystem_path' - Allows editing the filesystem path * of the llmst.txt file to account for server restrictions to the filesystem. */ apply_filters( 'wpseo_llmstxt_filesystem_path', $llms_filesystem_path ); -
/** * Filter 'wpseo_llmstxt_link_description' - Allow filtering the description of * links in the llms.txt post lists. */ apply_filters( 'wpseo_llmstxt_link_description', $post->get_description(), $post->get_id(), $post_type_object->name ); -
wpseo_loaded
action/** * Action called when the Yoast SEO plugin file has loaded. */ do_action( 'wpseo_loaded' ); -
wpseo_locale
filter/** * Filter: 'wpseo_locale' - Allow changing the locale output. */ apply_filters( 'wpseo_locale', \get_locale() ); -
wpseo_logger
filter/** * Gives the possibility to set override the logger interface. */ apply_filters( 'wpseo_logger', $this->wrapped_logger ); -
/** * Filter: 'wpseo_manage_options_capability' - Allow changing the capability * users need to view the settings pages. */ apply_filters( 'wpseo_manage_options_capability', 'wpseo_manage_options' ); -
wpseo_meta_author
filter/** * Filter: 'wpseo_meta_author' - Allow developers to filter the article's * author meta tag. */ apply_filters( 'wpseo_meta_author', $user_data->display_name, $this->presentation ); -
wpseo_metabox_entries_{$tab}
filter/** * Filter the WPSEO metabox form field definitions for a tab. {tab} can be * 'general', 'advanced' or 'social'. */ apply_filters( "wpseo_metabox_entries_{$tab}", $field_defs, $post_type ); -
wpseo_metadesc
filter/** * Filter: 'wpseo_metadesc' - Allow changing the Yoast SEO meta description * sentence. */ apply_filters( 'wpseo_metadesc', $meta_description, $this->presentation ); -
wpseo_misc_cleanup_tasks
filter/** * Filter: Adds the possibility to add additional non-indexable cleanup * functions. */ apply_filters( 'wpseo_misc_cleanup_tasks', [] ); -
/** * Filters the redirect URI embedded in a single MyYoast authorization request. */ apply_filters( 'wpseo_myyoast_authorization_redirect_uri', $chosen, $client, $user_id, $scopes, $resource_indicator, $return_url ); -
/** * Filters the MyYoast initial access token. */ apply_filters( 'wpseo_myyoast_initial_access_token', self::INITIAL_ACCESS_TOKEN ); -
wpseo_myyoast_issuer_url
filter/** * Filters the MyYoast issuer URL. */ apply_filters( 'wpseo_myyoast_issuer_url', self::DEFAULT_ISSUER_URL ); -
wpseo_myyoast_redirect_uris
filter/** * Filters the redirect URIs registered with MyYoast for this site. */ apply_filters( 'wpseo_myyoast_redirect_uris', [ $canonical ] ); -
/** * Filters the MyYoast software statement JWT. */ apply_filters( 'wpseo_myyoast_software_statement', self::SOFTWARE_STATEMENT ); -
wpseo_next_rel_link
filter/** * Filter: 'wpseo_next_rel_link' - Allow changing link rel output by Yoast SEO. */ apply_filters( 'wpseo_next_rel_link', $output ); -
/** * Filter capabilities that enable the displaying of this notification. */ apply_filters( 'wpseo_notification_capabilities', $this->options['capabilities'], $this ); -
/** * Filter capability check to enable all or any capabilities. */ apply_filters( 'wpseo_notification_capability_check', $this->options['capability_check'], $this ); -
wpseo_og_article_publisher
filter/** * Filter: 'wpseo_og_article_publisher' - Allow developers to filter the * article publisher's Facebook URL. */ apply_filters( 'wpseo_og_article_publisher', $this->presentation->open_graph_article_publisher, $this->presentation ); -
wpseo_og_locale
filter/** * Filter: 'wpseo_og_locale' - Allow changing the Yoast SEO Open Graph locale. */ apply_filters( 'wpseo_og_locale', $this->presentation->open_graph_locale, $this->presentation ); -
/** * Filter: 'wpseo_opengraph_author_facebook' - Allow developers to filter the * article author's Facebook URL. */ apply_filters( 'wpseo_opengraph_author_facebook', $this->presentation->open_graph_article_author, $this->presentation ); -
wpseo_opengraph_desc
filter/** * Filter: 'wpseo_opengraph_desc' - Allow changing the Yoast SEO generated Open * Graph description. */ apply_filters( 'wpseo_opengraph_desc', $meta_og_description, $this->presentation ); -
wpseo_opengraph_image
filter/** * Filter: 'wpseo_opengraph_image' - Allow changing the Open Graph image url. */ apply_filters( 'wpseo_opengraph_image', $image['url'], $this->presentation ); -
wpseo_opengraph_image_height
filter/** * Filter: 'wpseo_opengraph_image_height' - Allow changing the Open Graph image * height. */ apply_filters( 'wpseo_opengraph_image_height', $image_height, $this->presentation ); -
wpseo_opengraph_image_size
filter/** * Filter: 'wpseo_opengraph_image_size' - Allow overriding the image size used * for Open Graph sharing. If this filter is used, the defined size will always * be used for the og:image. The image will still be rejected if it is too * small. */ apply_filters( 'wpseo_opengraph_image_size', null ); -
wpseo_opengraph_image_type
filter/** * Filter: 'wpseo_opengraph_image_type' - Allow changing the Open Graph image * type. */ apply_filters( 'wpseo_opengraph_image_type', $image_type, $this->presentation ); -
wpseo_opengraph_image_width
filter/** * Filter: 'wpseo_opengraph_image_width' - Allow changing the Open Graph image * width. */ apply_filters( 'wpseo_opengraph_image_width', $image_width, $this->presentation ); -
/** * Filter: 'wpseo_opengraph_show_publish_date' - Allow showing publication date * for other post types. */ apply_filters( 'wpseo_opengraph_show_publish_date', false, $this->post->get_post_type( $this->source ) ); -
wpseo_opengraph_site_name
filter/** * Filter: 'wpseo_opengraph_site_name' - Allow changing the Yoast SEO generated * Open Graph site name. */ apply_filters( 'wpseo_opengraph_site_name', $this->presentation->open_graph_site_name, $this->presentation ); -
wpseo_opengraph_title
filter/** * Filter: 'wpseo_opengraph_title' - Allow changing the Yoast SEO generated * title. */ apply_filters( 'wpseo_opengraph_title', $title, $this->presentation ); -
wpseo_opengraph_type
filter/** * Filter: 'wpseo_opengraph_type' - Allow changing the opengraph type. */ apply_filters( 'wpseo_opengraph_type', $this->presentation->open_graph_type, $this->presentation ); -
wpseo_opengraph_url
filter/** * Filter: 'wpseo_opengraph_url' - Allow changing the Yoast SEO generated open * graph URL. */ apply_filters( 'wpseo_opengraph_url', $this->presentation->open_graph_url, $this->presentation ); -
/** * Allows to override the content that is display on the specific option tab. */ apply_filters( "wpseo_option_tab-{$tab_filter_name}", null, $option_tabs, $tab ); -
/** * Allow altering the array with variable array key patterns. */ apply_filters( 'wpseo_option_titles_variable_array_key_patterns', $patterns ); -
wpseo_option_wpseo_defaults
filter/** * Filter the `wpseo` option defaults. */ apply_filters( 'wpseo_option_wpseo_defaults', $this->defaults ); -
wpseo_options
filter/** * Filter: wpseo_options - Allow developers to change the option name to * include. */ apply_filters( 'wpseo_options', $option_names ); -
/** * Filter: Allow changes to the social profiles fields available for an * organization. */ apply_filters( 'wpseo_organization_social_profile_fields', $this->organization_social_profile_fields ); -
/** * Filter: Allow changes to the social profiles fields available for a person. */ apply_filters( 'wpseo_person_social_profile_fields', $this->person_social_profile_fields ); -
wpseo_post_edit_values
filter/** * Filter: 'wpseo_post_edit_values' - Allows changing the values Yoast SEO uses * inside the post editor. */ apply_filters( 'wpseo_post_edit_values', $values, $this->post ); -
wpseo_post_indexation_limit
filter/** * Filter 'wpseo_post_indexation_limit' - Allow filtering the amount of posts * indexed during each indexing pass. */ apply_filters( 'wpseo_post_indexation_limit', 25 ); -
/** * Filter 'wpseo_post_type_archive_indexation_limit' - Allow filtering the * number of posts indexed during each indexing pass. */ apply_filters( 'wpseo_post_type_archive_indexation_limit', 25 ); -
/** * Filter: Gives the possibility to filter out post types. */ apply_filters( 'wpseo_post_types_reset_permalinks', $this->post_type->get_public_post_types() ); -
/** * Allows enhancing the array of posts' that share their focus keywords with * the post's focus keywords. */ apply_filters( 'wpseo_posts_for_focus_keyword', $post_ids, $keyword, $post_id ); -
wpseo_posts_join
filter/** * Filter JOIN query part for the post type. */ apply_filters( 'wpseo_posts_join', false, $post_type ); -
wpseo_posts_where
filter/** * Filter WHERE query part for the post type. */ apply_filters( 'wpseo_posts_where', false, $post_type ); -
/** * Filter: 'wpseo_pre_analysis_post_content' - Allow filtering the content * before analysis. */ apply_filters( 'wpseo_pre_analysis_post_content', $post->post_content, $post ); -
/** * Filter: 'wpseo_pre_schema_block_type_<block-type>' - Allows hooking things * to change graph output based on the blocks on the page. */ do_action( "wpseo_pre_schema_block_type_{$block_type}", $context->blocks[ $block_type ], $context ); -
wpseo_prev_rel_link
filter/** * Filter: 'wpseo_prev_rel_link' - Allow changing link rel output by Yoast SEO. */ apply_filters( 'wpseo_prev_rel_link', $output ); -
/** * Filter to determine If the PreviouslyUsedKeyphrase assessment should run. */ apply_filters( 'wpseo_previously_used_keyword_active', true ); -
/** * Filter: Adds the possibility to use primary category at additional admin * pages. */ apply_filters( 'wpseo_primary_category_admin_pages', [] ); -
wpseo_public_post_statuses
filter/** * Filter: 'wpseo_public_post_statuses' - List of public post statuses. */ apply_filters( 'wpseo_public_post_statuses', [ 'publish' ] ); -
/** * Fires after the post time/date setting in the Publish meta box. */ do_action( 'wpseo_publishbox_misc_actions', $post ); -
/** * Filter: Adds the possibility to add extra recommended replacement variables. */ apply_filters( 'wpseo_recommended_replace_vars', $this->recommended_replace_vars ); -
/** * Action: 'wpseo_register_extra_replacements' - Allows for registration of * additional variables to replace. */ do_action( 'wpseo_register_extra_replacements' ); -
wpseo_remove_cat_parameter
filter/** * Allows the developer to keep cat=-1 GET parameters */ apply_filters( 'wpseo_remove_cat_parameter', true ); -
wpseo_remove_reply_to_com
filter/** * Filter: 'wpseo_remove_reply_to_com' - Allow disabling the feature that * removes ?replytocom query parameters. */ apply_filters( 'wpseo_remove_reply_to_com', true ); -
/** * Filters the custom fields that are auto-completed and replaced as * replacement variables in the meta box and sidebar. */ apply_filters( 'wpseo_replacement_variables_custom_fields', $fields ); -
wpseo_replacements
filter/** * Filter: 'wpseo_replacements' - Allow customization of the replacements * before they are applied. */ apply_filters( 'wpseo_replacements', $replacements, $this->args ); -
/** * Filter: 'wpseo_replacements_filter_sep' - Allow customization of the * separator character(s). */ apply_filters( 'wpseo_replacements_filter_sep', $replacement ); -
wpseo_replacements_final
filter/** * Filter: 'wpseo_replacements_final' - Allow overruling of whether or not to * remove placeholders which didn't yield a replacement. */ apply_filters( 'wpseo_replacements_final', true ); -
wpseo_robots
filter/** * Filter: 'wpseo_robots' - Allows filtering of the meta robots output of Yoast * SEO. */ apply_filters( 'wpseo_robots', $robots_string, $this ); -
wpseo_robots_array
filter/** * Filter: 'wpseo_robots_array' - Allows filtering of the meta robots output * array of Yoast SEO. */ apply_filters( 'wpseo_robots_array', \array_filter( $robots ), $this ); -
wpseo_run_upgrade
action/** * Filter: 'wpseo_run_upgrade' - Runs the upgrade hook which are dependent on * Yoast SEO. */ do_action( 'wpseo_run_upgrade', $version ); -
wpseo_save_indexable
action/** * Action: 'wpseo_save_indexable' - Allow developers to perform an action when * the indexable is updated. */ do_action( 'wpseo_save_indexable', $indexable, $indexable_before ); -
wpseo_saved_indexable
action/** * Action: 'wpseo_save_indexable' - Allow developers to perform an action right * after the indexable is created or updated. */ do_action( 'wpseo_saved_indexable', $indexable ); -
wpseo_schema_{$identifier}
filter/** * Filter: 'wpseo_schema_<identifier>' - Allows changing graph piece output. * This filter can be called with either an identifier or a block type (see * `add_schema_blocks_graph_pieces()`). */ apply_filters( "wpseo_schema_{$identifier}", $graph_piece, $context, $graph_piece_generator, $graph_piece_generators ); -
wpseo_schema_{$type}
filter/** * Filter: 'wpseo_schema_<type>' - Allows changing graph piece output by @type. */ apply_filters( "wpseo_schema_{$type}", $graph_piece, $context, $graph_piece_generator, $graph_piece_generators ); -
/** * Filter: 'wpseo_schema_aggregator_big_schema_post_types' Determines the list * of post types we want to have a smaller per page count. */ apply_filters( 'wpseo_schema_aggregator_big_schema_post_types', self::BIG_SCHEMA_POST_TYPES ); -
/** * Filter: 'wpseo_schema_aggregator_per_page' Determines the page count for * post types. */ apply_filters( 'wpseo_schema_aggregator_per_page', self::DEFAULT_PER_PAGE ); -
/** * Filter: 'wpseo_schema_aggregator_per_page_big' Determines the page count for * post types with lots of schema nodes. */ apply_filters( 'wpseo_schema_aggregator_per_page_big', self::DEFAULT_PER_PAGE_BIG_SCHEMA ); -
/** * Filter: 'wpseo_schema_article_keywords_taxonomy' - Allow changing the * taxonomy used to assign keywords to a post type Article data. */ apply_filters( 'wpseo_schema_article_keywords_taxonomy', 'post_tag' ); -
/** * Filter: 'wpseo_schema_article_potential_action_target' - Allows filtering of * the schema Article potentialAction target. */ apply_filters( 'wpseo_schema_article_potential_action_target', [ $this->context->canonical . '#respond' ] ); -
/** * Filter: 'wpseo_schema_article_sections_taxonomy' - Allow changing the * taxonomy used to assign keywords to a post type Article data. */ apply_filters( 'wpseo_schema_article_sections_taxonomy', 'category' ); -
/** * Filter: 'wpseo_schema_article_types_labels' - Allow developers to filter the * available article types and their labels. */ apply_filters( 'wpseo_schema_article_types_labels', [ [ 'name' => \__( 'Article', 'wordpress-seo' ), 'value' => 'Article', ], [ 'name' => \__( 'Blog Post', 'wordpress-seo' ), 'value' => 'BlogPosting', ], [ 'name' => \__( 'Social Media Posting', 'wordpress-seo' ), 'value' => 'SocialMediaPosting', ], [ 'name' => \__( 'News Article', 'wordpress-seo' ), 'value' => 'NewsArticle', ], [ 'name' => \__( 'Advertiser Content Article', 'wordpress-seo' ), 'v... ); -
/** * Filter: 'wpseo_schema_block_<block-type>'. This filter is documented in the * `generate_graph()` function in this class. */ apply_filters( "wpseo_schema_block_{$block_type}", $graph, $block, $context ); -
wpseo_schema_company_logo_id
filter/** * Filter: 'wpseo_schema_company_logo_id' - Allows filtering company logo id. */ apply_filters( 'wpseo_schema_company_logo_id', $company_logo_id ); -
/** * Filter: 'wpseo_schema_company_logo_meta' - Allows filtering company logo * meta. */ apply_filters( 'wpseo_schema_company_logo_meta', $company_logo_meta ); -
wpseo_schema_company_name
filter/** * Filter: 'wpseo_schema_company_name' - Allows filtering company name */ apply_filters( 'wpseo_schema_company_name', $this->options->get( 'company_name' ) ); -
wpseo_schema_graph
filter/** * Filter: 'wpseo_schema_graph' - Allows changing graph output. */ apply_filters( 'wpseo_schema_graph', $graph, $context ); -
wpseo_schema_graph_pieces
filter/** * Filter: 'wpseo_schema_graph_pieces' - Allows adding pieces to the graph. */ apply_filters( 'wpseo_schema_graph_pieces', $schema_pieces, $context ); -
wpseo_schema_main_image_id
filter/** * Filter: 'wpseo_schema_main_image_id' - Allow changing the main image ID. */ apply_filters( 'wpseo_schema_main_image_id', $image_id ); -
/** * Filter: 'wpseo_schema_needs_<identifier>' - Allows changing which graph * pieces we output. */ apply_filters( "wpseo_schema_needs_{$identifier}", $piece->is_needed() ); -
/** * Filter: 'wpseo_schema_organization_social_profiles' - Allows filtering * social profiles for the represented organization. */ apply_filters( 'wpseo_schema_organization_social_profiles', $profiles ); -
wpseo_schema_person_data
filter/** * Filter: 'wpseo_schema_person_data' - Allows filtering of schema data per * user. */ apply_filters( 'wpseo_schema_person_data', $data, $user_id ); -
wpseo_schema_person_logo_id
filter/** * Filter: 'wpseo_schema_person_logo_id' - Allows filtering person logo id. */ apply_filters( 'wpseo_schema_person_logo_id', $person_logo_id ); -
/** * Filter: 'wpseo_schema_person_logo_meta' - Allows filtering person logo meta. */ apply_filters( 'wpseo_schema_person_logo_meta', $person_logo_meta ); -
/** * Filter: 'wpseo_schema_person_social_profiles' - Allows filtering of social * profiles per user. */ apply_filters( 'wpseo_schema_person_social_profiles', $this->social_profiles, $user_id ); -
wpseo_schema_piece_language
filter/** * Filter: 'wpseo_schema_piece_language' - Allow changing the Schema piece * language. */ apply_filters( 'wpseo_schema_piece_language', \get_bloginfo( 'language' ), $data ); -
/** * Filter: 'wpseo_schema_webpage_potential_action_target' - Allows filtering of * the schema WebPage potentialAction target. */ apply_filters( 'wpseo_schema_webpage_potential_action_target', [ $url ] ); -
wpseo_schema_webpage_type
filter/** * Filter: 'wpseo_schema_webpage_type' - Allow changing the WebPage type. */ apply_filters( 'wpseo_schema_webpage_type', $type ); -
wpseo_separator_option_list
filter/** * Allows altering the separator options array. */ apply_filters( 'wpseo_separator_option_list', $separators ); -
wpseo_separator_options
filter/** * Allow altering the array with separator options. */ apply_filters( 'wpseo_separator_options', $separators ); -
/** * Fires when displaying the crawl cleanup network tab. */ do_action( 'wpseo_settings_tab_crawl_cleanup_network', $yform ); -
/** * WARNING: This hook is intended for internal use only. Don't use it in your * code as it will be removed shortly. */ do_action( 'wpseo_settings_tab_site_analysis_internal', $yform ); -
/** * Filter: 'wpseo_should_add_subdirectory_multisite_xml_sitemaps' - Disabling * this filter removes subdirectory sites from xml sitemaps. */ apply_filters( 'wpseo_should_add_subdirectory_multisite_xml_sitemaps', true ); -
/** * Filter: Include or exclude a user from being build and saved as an * indexable. Return an `Author_Not_Built_Exception` when the indexable should * not be build, with an appropriate message telling why it should not be * built. Return `null` if the indexable should be build. */ apply_filters( 'wpseo_should_build_and_save_user_indexable', $exception, $user_id ); -
wpseo_should_index_links
filter/** * Filter: 'wpseo_should_index_links' - Allows disabling of Yoast's links * indexation. */ apply_filters( 'wpseo_should_index_links', $should_index_links ); -
/** * Filter: 'wpseo_should_redirect_after_install' - Allows skipping the redirect * to the installation success page. */ apply_filters( 'wpseo_should_redirect_after_install', true ); -
wpseo_should_save_indexable
filter/** * Filter: 'wpseo_should_save_indexable' - Allow developers to enable / disable * saving the indexable when the indexable is updated. Warning: overriding the * intended action may cause problems when moving from a staging to a * production environment because indexable permalinks may get set incorrectly. */ apply_filters( 'wpseo_should_save_indexable', $intend_to_save, $indexable ); -
/** * Filter 'wpseo_shutdown_indexation_limit' - Allow filtering the number of * objects that can be indexed during shutdown. */ apply_filters( 'wpseo_shutdown_indexation_limit', 25 ); -
/** * Filter: 'wpseo_site_representation_ability_fields' - Allows adding site * representation settings that the site representation abilities can write. */ apply_filters( 'wpseo_site_representation_ability_fields', $default_fields ); -
wpseo_sitemap_{$type}_urlset
filter/** * Filters the `urlset` for a sitemap by type. */ apply_filters( "wpseo_sitemap_{$type}_urlset", $urlset ); -
/** * Filter: 'wpseo_sitemap_content_before_parse_html_images' - Filters the post * content before it is parsed for images. */ apply_filters( 'wpseo_sitemap_content_before_parse_html_images', $post->post_content ); -
/** * Filter the maximum number of entries per XML sitemap. */ apply_filters( 'wpseo_sitemap_entries_per_page', 1000 ); -
wpseo_sitemap_exclude_author
filter/** * Filter the authors, included in XML sitemap. */ apply_filters( 'wpseo_sitemap_exclude_author', $users ); -
/** * Filter decision if post type is excluded from the XML sitemap. */ apply_filters( 'wpseo_sitemap_exclude_post_type', false, $post_type ); -
/** * Filter to exclude the taxonomy from the XML sitemap. */ apply_filters( 'wpseo_sitemap_exclude_taxonomy', false, $taxonomy_name ); -
wpseo_sitemap_http_headers
filter/** * Filter the HTTP headers we send before an XML sitemap. */ apply_filters( 'wpseo_sitemap_http_headers', $headers ); -
wpseo_sitemap_index
filter/** * Filter to append sitemaps to the index. */ apply_filters( 'wpseo_sitemap_index', '' ); -
wpseo_sitemap_index_links
filter/** * Filter the sitemap links array before the index sitemap is built. */ apply_filters( 'wpseo_sitemap_index_links', $links ); -
/** * Filter the page which is dedicated to this post type archive. */ apply_filters( 'wpseo_sitemap_page_for_post_type_archive', $archive_page_id, $post_type ); -
wpseo_sitemap_post_statuses
filter/** * Filter post status list for sitemap query for the post type. */ apply_filters( 'wpseo_sitemap_post_statuses', [ 'publish' ], $type ); -
/** * Filter the URL Yoast SEO uses in the XML sitemap for this post type archive. */ apply_filters( 'wpseo_sitemap_post_type_archive_link', $this->get_post_type_archive_link( $post_type ), $post_type ); -
/** * Filters the first post type links. */ apply_filters( 'wpseo_sitemap_post_type_first_links', $links, $post_type ); -
/** * Fires before the attempt to retrieve XML sitemap from the transient cache. */ do_action( "wpseo_sitemap_stylesheet_cache_{$type}", $this ); -
wpseo_sitemap_url
filter/** * Filters the output for the sitemap URL tag. */ apply_filters( 'wpseo_sitemap_url', $output, $url ); -
wpseo_sitemap_urlimages
filter/** * Filter images to be included for the post in XML sitemap. */ apply_filters( 'wpseo_sitemap_urlimages', $images, $post->ID ); -
/** * Filter images to be included for the term in XML sitemap. */ apply_filters( 'wpseo_sitemap_urlimages_front_page', $images ); -
wpseo_sitemap_urlimages_term
filter/** * Filter images to be included for the term in XML sitemap. */ apply_filters( 'wpseo_sitemap_urlimages_term', $images, $term->term_id ); -
wpseo_sitemap_urlset
filter/** * Filters the `urlset` for all sitemaps. */ apply_filters( 'wpseo_sitemap_urlset', $urlset ); -
wpseo_sitemaps_base_url
filter/** * Filter the base URL of the sitemaps. */ apply_filters( 'wpseo_sitemaps_base_url', $base ); -
/** * Filters the social template value for a given post type. */ apply_filters( 'wpseo_social_template_post_type', '', $template_option_name, $this->post->post_type ); -
/** * Filters the social template value for a given taxonomy. */ apply_filters( 'wpseo_social_template_taxonomy', '', $template_option_name, $this->term->taxonomy ); -
/** * Filter: 'wpseo_structured_data_blocks_image_size' - Allows adjusting the * image size in structured data blocks. */ apply_filters( 'wpseo_structured_data_blocks_image_size', $image_size, $attachment_id, $src_matches[1] ); -
wpseo_stylesheet_url
filter/** * Filter the stylesheet URL for the XML sitemap. */ apply_filters( 'wpseo_stylesheet_url', $this->stylesheet ); -
/** * Filter: 'wpseo_task_list_post_type_tasks' - Allows adding more post type * tasks to the task list. */ apply_filters( 'wpseo_task_list_post_type_tasks', $this->post_type_tasks ); -
wpseo_task_list_tasks
filter/** * Filter: 'wpseo_task_list_tasks' - Allows adding more tasks to the task list. */ apply_filters( 'wpseo_task_list_tasks', $this->tasks ); -
/** * Filter: 'wpseo_taxonomy_content_fields' - Adds the possibility to register * additional content fields. */ apply_filters( 'wpseo_taxonomy_content_fields', [] ); -
wpseo_term_indexation_limit
filter/** * Filter 'wpseo_term_indexation_limit' - Allow filtering the number of terms * indexed during each indexing pass. */ apply_filters( 'wpseo_term_indexation_limit', 25 ); -
wpseo_terms
filter/** * Allows filtering of the terms list used to replace %%category%%, %%tag%% and * %%ct_<custom-tax-name>%% variables. */ apply_filters( 'wpseo_terms', $output, $taxonomy ); -
wpseo_title
filter/** * Filter: 'wpseo_title' - Allow changing the Yoast SEO generated title. */ apply_filters( 'wpseo_title', $title, $this->presentation ); -
/** * WARNING: This hook is intended for internal use only. Don't use it in your * code as it will be removed shortly. */ do_action( 'wpseo_tools_overview_list_items_internal' ); -
/** * Filter: 'wpseo_tracking_settings_include_list' - Allow filtering the * settings included in tracking. */ apply_filters( 'wpseo_tracking_settings_include_list', $this->include_list ); -
/** * Filter: 'wpseo_transform_dashboard_subject_for_testing' - Allows overriding * subjects like URLs for the dashboard, to facilitate testing in local * environments. */ apply_filters( 'wpseo_transform_dashboard_subject_for_testing', $ranking->getKeys()[0] ); -
wpseo_twitter_card_type
filter/** * Filter: 'wpseo_twitter_card_type' - Allow changing the Twitter card type. */ apply_filters( 'wpseo_twitter_card_type', $this->presentation->twitter_card, $this->presentation ); -
/** * Filter: 'wpseo_twitter_creator_account' - Allow changing the X account as * output in the X card by Yoast SEO. */ apply_filters( 'wpseo_twitter_creator_account', $twitter_creator ); -
wpseo_twitter_description
filter/** * Filter: 'wpseo_twitter_description' - Allow changing the Twitter description * as output in the Twitter card by Yoast SEO. */ apply_filters( 'wpseo_twitter_description', $this->replace_vars( $this->presentation->twitter_description ), $this->presentation ); -
wpseo_twitter_image
filter/** * Filter: 'wpseo_twitter_image' - Allow changing the Twitter Card image. */ apply_filters( 'wpseo_twitter_image', $this->presentation->twitter_image, $this->presentation ); -
wpseo_twitter_image_size
filter/** * Filter: 'wpseo_twitter_image_size' - Allow changing the Twitter Card image * size. */ apply_filters( 'wpseo_twitter_image_size', 'full' ); -
wpseo_twitter_site
filter/** * Filter: 'wpseo_twitter_site' - Allow changing the Twitter site account as * output in the Twitter card by Yoast SEO. */ apply_filters( 'wpseo_twitter_site', $this->presentation->twitter_site, $this->presentation ); -
wpseo_twitter_title
filter/** * Filter: 'wpseo_twitter_title' - Allow changing the Twitter title. */ apply_filters( 'wpseo_twitter_title', $this->replace_vars( $this->presentation->twitter_title ), $this->presentation ); -
wpseo_typecount_join
filter/** * Filter JOIN query part for type count of post type. */ apply_filters( 'wpseo_typecount_join', '', $post_type ); -
wpseo_typecount_where
filter/** * Filter WHERE query part for type count of post type. */ apply_filters( 'wpseo_typecount_where', '', $post_type ); -
/** * Filter: 'wpseo_unindexed_count_queries_ran' - Informs whether the expensive * unindexed count queries have been ran already. */ apply_filters( 'wpseo_unindexed_count_queries_ran', false ); -
wpseo_user_profile_additions
action/** * Fires in the user profile. */ do_action( 'wpseo_user_profile_additions', $user ); -
wpseo_wincher_all_keyphrases
filter/** * Filters the keyphrases collected by the Wincher integration from all the * posts. */ apply_filters( 'wpseo_wincher_all_keyphrases', $keyphrases ); -
/** * Filters the keyphrases collected by the Wincher integration from the post. */ apply_filters( 'wpseo_wincher_keyphrases_from_post', $keyphrases, $post->ID ); -
wpseo_xml_sitemap_img
filter/** * Filter image data to be included in XML sitemap for the post. */ apply_filters( 'wpseo_xml_sitemap_img', $image, $post ); -
wpseo_xml_sitemap_img_src
filter/** * Filter image URL to be included in XML sitemap for the post. */ apply_filters( 'wpseo_xml_sitemap_img_src', $src, $post ); -
wpseo_xml_sitemap_post_url
filter/** * Filter the URL Yoast SEO uses in the XML sitemap. */ apply_filters( 'wpseo_xml_sitemap_post_url', get_permalink( $post ), $post ); -
wpseo_xsl_{$type}
action/** * Fires for the output of XSL for XML sitemaps, other than type "main". */ do_action( "wpseo_xsl_{$type}" ); -
/** * Fires when the plugin's dynamic rewrite rules should be added. */ do_action( 'yoast_add_dynamic_rewrite_rules', $this ); -
/** * Filter: 'yoast_display_gutenberg_compat_notification' - Allows developer to * disable the Gutenberg compatibility notification. */ apply_filters( 'yoast_display_gutenberg_compat_notification', true ); -
/** * Private filter: 'yoast_free_additional_metabox_sections'. */ apply_filters( 'yoast_free_additional_metabox_sections', [] ); -
/** * Private filter: 'yoast_free_additional_taxonomy_metabox_sections'. */ apply_filters( 'yoast_free_additional_taxonomy_metabox_sections', [] ); -
/** * Filter: 'yoast_notifications_before_storage' - Allows developer to filter * notifications before saving them. */ apply_filters( 'yoast_notifications_before_storage', $merged_notifications ); -
/** * Filter: 'Yoast\WP\SEO\allowlist_permalink_vars' - Allows plugins to register * their own variables not to clean. */ apply_filters( 'Yoast\WP\SEO\allowlist_permalink_vars', $default_allowed_extravars ); -
/** * Allow changing the Open Graph description. */ apply_filters( "Yoast\WP\SEO\open_graph_description_{$object_type}", $description, $object_subtype ); -
/** * Allow changing the Open Graph image URL. */ apply_filters( "Yoast\WP\SEO\open_graph_image_{$object_type}", $image, $object_subtype ); -
/** * Allow changing the Open Graph image ID. */ apply_filters( "Yoast\WP\SEO\open_graph_image_id_{$object_type}", $image_id, $object_subtype ); -
/** * Allow changing the Open Graph title. */ apply_filters( "Yoast\WP\SEO\open_graph_title_{$object_type}", $title, $object_subtype ); -
/** * Allow registering custom robots rules to be outputted within the Yoast * content block in robots.txt. */ do_action( 'Yoast\WP\SEO\register_robots_rules', $this->robots_txt_helper ); -
/** * Filter: 'Yoast\WP\SEO\should_index_indexables' - Allow developers to enable * / disable creating indexables. Warning: overriding the intended action may * cause problems when moving from a staging to a production environment * because indexable permalinks may get set incorrectly. */ apply_filters( 'Yoast\WP\SEO\should_index_indexables', $should_index ); -
/** * Filter: 'Yoast\WP\SEO\should_invalidate_opcache' - Allow developers to * enable / disable opcache invalidation upon upgrade of the Yoast SEO plugin. */ apply_filters( 'Yoast\WP\SEO\should_invalidate_opcache', $should_invalidate_opcache ); -
/** * Filter: 'Yoast\WP\SEO\workouts_route_args' - Allows the add-ons add their * own arguments to the route registration. */ apply_filters( 'Yoast\WP\SEO\workouts_route_args', $args_array ); -
/** * Filter: 'Yoast\WP\SEO\workouts_route_save' - Allows the add-ons to save the * options data in their own options. */ apply_filters( 'Yoast\WP\SEO\workouts_route_save', null, $workouts_data ); -
wpseo_register_capabilities
actiondo_action( 'wpseo_register_capabilities' ); -
_yoast_run_migrations
actiondo_action( '_yoast_run_migrations' ); -
wpseo_indexable_deleted
actiondo_action( 'wpseo_indexable_deleted', $indexable ); -
wpseo_register_roles
actiondo_action( 'wpseo_register_roles' ); -
wpseo_indexing_endpoints
filterapply_filters( 'wpseo_indexing_endpoints', $endpoints ); -
apply_filters( 'wpseo_knowledge_graph_setting_msg', '' ); -
wpseo_metabox_prio
filterapply_filters( 'wpseo_metabox_prio', 'high' ); -
wpseo_save_compare_data
actiondo_action( 'wpseo_save_compare_data', $post ); -
wpseo_save_metaboxes
filterapply_filters( 'wpseo_save_metaboxes', [] ); -
wpseo_saved_postdata
actiondo_action( 'wpseo_saved_postdata' ); -
apply_filters( "wpseo_tax_meta_special_term_id_validation_{$term_id}", $meta_data, $taxonomy, $term_id ); -
do_action( 'clean_new_public_post_type_notifications', $newly_made_non_public_post_types ); -
do_action( 'clean_new_public_taxonomy_notifications', $newly_made_non_public_taxonomies ); -
date_rewrite_rules
filterapply_filters( 'date_rewrite_rules', $date_rewrite ); -
default_option_{$option}
filterapply_filters( "default_option_{$option}", $default_value, $option, $passed_default ); -
delete_post_meta
actiondo_action( 'delete_post_meta', $meta_ids, null, null, null ); -
deleted_post_meta
actiondo_action( 'deleted_post_meta', $meta_ids, null, null, null ); -
apply_filters( 'googlesitekit_apifetch_preload_paths', [] ); -
do_action( 'new_public_post_type_notifications', $newly_made_public_post_types ); -
do_action( 'new_public_taxonomy_notifications', $newly_made_public_taxonomies ); -
option_{$option}
filterapply_filters( "option_{$option}", maybe_unserialize( $value ), $option ); -
the_content
filterapply_filters( 'the_content', $content ); -
wp_get_attachment_url
filterapply_filters( 'wp_get_attachment_url', $src, $post_id ); -
wpseo_activate
actiondo_action( 'wpseo_activate' ); -
apply_filters( 'wpseo_add_extra_taxmeta_term_defaults', [] ); -
wpseo_admin_below_content
actiondo_action( 'wpseo_admin_below_content', $this ); -
wpseo_admin_l10n
filterapply_filters( 'wpseo_admin_l10n', [] ); -
apply_filters( "wpseo_article_enhance_{$enhancement}", $default ); -
apply_filters( 'wpseo_article_enhance_article_body_fallback', true ); -
apply_filters( 'wpseo_article_enhance_body_when_excerpt_exists', false ); -
apply_filters( "wpseo_article_enhance_config_{$key}", $the_default ); -
wpseo_breadcrumb_indexables
filterapply_filters( 'wpseo_breadcrumb_indexables', $indexables, $context ); -
apply_filters( 'wpseo_breadcrumb_output_wrapper', 'span' ); -
wpseo_breadcrumb_separator
filterapply_filters( 'wpseo_breadcrumb_separator', $this->helpers->options->get( 'breadcrumbs-sep' ) ); -
apply_filters( 'wpseo_breadcrumb_single_link_wrapper', 'span' ); -
wpseo_deactivate
actiondo_action( 'wpseo_deactivate' ); -
wpseo_defaults
filterapply_filters( 'wpseo_defaults', $this->defaults, $this->option_name ); -
wpseo_double_clean_titles
actiondo_action( 'wpseo_double_clean_titles' ); -
apply_filters( "wpseo_enable_editor_features_{$post_type}", WPSEO_Options::get( 'display-metabox-pt-' . $post_type ) ); -
wpseo_format_admin_url
filterapply_filters( 'wpseo_format_admin_url', $formatted_url ); -
wpseo_head
actiondo_action( 'wpseo_head' ); -
wpseo_hit_sitemap_index
actiondo_action( 'wpseo_hit_sitemap_index' ); -
wpseo_link_count_post_types
filterapply_filters( 'wpseo_link_count_post_types', $this->post_type_helper->get_accessible_post_types() ); -
wpseo_mastodon_active
filterapply_filters( 'wpseo_mastodon_active', false ); -
wpseo_meta_clean_up
actiondo_action( 'wpseo_meta_clean_up' ); -
apply_filters( 'wpseo_output_enhanced_slack_data', true ); -
wpseo_output_twitter_card
filterapply_filters( 'wpseo_output_twitter_card', true ); -
apply_filters( "wpseo_person_enhance_{$enhancement}", $default ); -
apply_filters( "wpseo_person_enhance_config_{$key}", $the_default ); -
wpseo_render_user_profile
actiondo_action( 'wpseo_render_user_profile', $user ); -
apply_filters( "wpseo_sanitize_post_meta_{$meta_key}", $clean, $meta_value, $field_def, $meta_key ); -
apply_filters( "wpseo_sanitize_tax_meta_{$key}", $clean[ $key ], ( $meta_data[ $key ] ?? null ), ( $old_meta[ $key ] ?? null ) ); -
apply_filters( 'wpseo_schema_aggregator_cache_enabled', true ); -
apply_filters( 'wpseo_schema_aggregator_cache_ttl', $cache_ttl ); -
apply_filters( 'wpseo_schema_aggregator_elements_context_map', $base_map ); -
apply_filters( "wpseo_schema_aggregator_elements_context_map_{$context}", $elements ); -
apply_filters( 'wpseo_schema_aggregator_filtering_strategy', $default_filter ); -
apply_filters( 'wpseo_schema_aggregator_post_types', $default_post_types ); -
apply_filters( 'wpseo_schema_aggregator_schemamap_changefreq', 'daily' ); -
apply_filters( 'wpseo_schema_aggregator_schemamap_priority', '0.8' ); -
apply_filters( "wpseo_sitemap_{$type}_content", '' ); -
wpseo_sitemap_public_url
filterapply_filters( 'wpseo_sitemap_public_url', home_url( 'main-sitemap.xsl' ) ); -
wpseo_sitemaps_providers
filterapply_filters( 'wpseo_sitemaps_providers', [] ); -
do_action( 'Yoast\WP\SEO\admin_network_integration_after', $integration ); -
apply_filters( 'Yoast\WP\SEO\enable_cron_indexing', true );
Generated from Yoast SEO'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: