Rank Math SEO icon
SEO

Rank Math SEO hooks reference

  • By Rank Math SEO
  • v1.0.282 New
  • Updated

Rank Math SEO 1.0.282 has 44 actions and 156 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.

functions.phpyour child theme
// Run your own code when Rank Math SEO fires an action
add_action( 'rank_math/abilities/set_sitemap_settings/after_save', function( $input ) {
	// Your code runs here.
}, 10, 1 );

// Change a value Rank Math SEO is about to use
add_filter( 'rank_math/primary_term', function( $value ) {
	// Change $value here.
	return $value;
}, 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

  • includes/admin/metabox/class-post-screen.php line 421 · used in 2 places
    /**
     * Filter: Allow disabling the primary term feature. 'rank_math/primary_term'
     * is deprecated, use 'rank_math/admin/disable_primary_term' instead.
     */
    apply_filters_deprecated( 'rank_math/primary_term', [ false ], '1.0.43', 'rank_math/admin/disable_primary_term' );
  • includes/admin/database/class-clauses.php line 119
    /**
     * Filter SQL clauses by type and context.
     */
    apply_filters( "rank_math_clauses_{$type}", $clauses, $this->context );
  • includes/admin/database/class-clauses.php line 125
    /**
     * Filter SQL clauses by type and context.
     */
    apply_filters( "rank_math_clauses_{$type}_{$this->context}", $clauses );
  • includes/abilities/settings/class-set-sitemap-settings.php line 186
    /**
     * Fires after set-sitemap-settings saves its FREE fields, so PRO can persist
     * its own sitemap fields (news_sitemap_publication_name,
     * video_sitemap_post_type, hide_video_sitemap, local_sitemap) from the same
     * input.
     */
    do_action( 'rank_math/abilities/set_sitemap_settings/after_save', $input );
  • includes/helpers/class-api.php line 36
    /**
     * Filter notification message & arguments before adding. Pass a falsy value to
     * stop the notification from getting added.
     */
    apply_filters( 'rank_math/admin/add_notification', $notification );
  • includes/class-installer.php line 287
    /**
     * Fires after database tables have been created.
     */
    do_action( 'rank_math/admin/after_create_tables', $tables, $modules );
  • includes/modules/analytics/class-db.php line 194
    /**
     * Filter: 'rank_math/analytics/date_exists_tables' - Allow developers to add
     * more tables to check.
     */
    apply_filters( 'rank_math/analytics/date_exists_tables', $tables, $date, $action );
  • includes/class-rewrite.php line 118
    /**
     * Filter: Change the author base.
     */
    apply_filters( 'rank_math/author_base', sanitize_title_with_dashes( Helper::get_settings( 'titles.url_author_base' ), '', 'save' ) );
  • includes/modules/schema/blocks/class-block.php line 120
    /**
     * Filter: Allow developers to preserve line breaks.
     */
    apply_filters( 'rank_math/block/preserve_line_breaks', true, $block );
  • includes/helpers/class-conditional.php line 159
    /**
     * Allow editing the robots.txt & htaccess data.
     */
    apply_filters( 'rank_math/can_edit_file', ( ! defined( 'DISALLOW_FILE_EDIT' ) || ! DISALLOW_FILE_EDIT ) && ( ! defined( 'DISALLOW_FILE_MODS' ) || ! DISALLOW_FILE_MODS ) );
  • includes/modules/database-tools/class-database-tools.php line 419
    /**
     * Filters the list of tools available on the Database Tools page.
     */
    apply_filters( 'rank_math/database/tools', $tools );
  • includes/helpers/class-post-type.php line 150
    /**
     * Changing the list of accessible post types.
     */
    apply_filters( 'rank_math/excluded_post_types', $accessible_post_types );
  • includes/helpers/class-taxonomy.php line 174
    /**
     * Filter: 'rank_math_excluded_taxonomies' - Allow changing the accessible
     * taxonomies.
     */
    apply_filters( 'rank_math/excluded_taxonomies', $taxonomies );
  • includes/admin/class-option-center.php line 523
    /**
     * Filter: Allow developers to add option fields which will flush the rewrite
     * rules when updated.
     */
    apply_filters( 'rank_math/flush_fields', [ 'strip_category_base', 'disable_author_archives', 'url_author_base', 'attachment_redirect_urls', 'attachment_redirect_default', 'nofollow_external_links', 'nofollow_image_links', 'nofollow_domains', 'nofollow_exclude_domains', 'new_window_external_links', 'redirections_header_code', 'redirections_post_redirect', 'redirections_debug', ] );
  • includes/frontend/paper/class-paper.php line 403
    /**
     * Filter the canonical URL.
     */
    apply_filters( 'rank_math/frontend/canonical', $canonical );
  • includes/modules/status/class-import-export-settings.php line 198
    /**
     * Fires while importing settings.
     */
    do_action( "rank_math/import/settings/{$hook}", $data );
  • includes/modules/schema/snippets/class-website.php line 61
    /**
     * Change the search URL in the JSON-LD.
     */
    apply_filters( 'rank_math/json_ld/search_url', home_url( '/?s={search_term_string}' ) );
  • includes/modules/links/class-links.php line 304
    /**
     * Filter to prevent processing the post.
     */
    apply_filters( 'rank_math/links/process_post', true, $post );
  • includes/helpers/class-choices.php line 518
    /**
     * Allow developer to change post types icons.
     */
    apply_filters( 'rank_math/post_type_icons', [ 'default' => 'rm-icon rm-icon-post', 'post' => 'rm-icon rm-icon-post', 'page' => 'rm-icon rm-icon-page', 'attachment' => 'rm-icon rm-icon-attachment', 'product' => 'rm-icon rm-icon-cart', 'web-story' => 'rm-icon rm-icon-stories', ] );
  • includes/class-helper.php line 238
    /**
     * Filter: 'rank_math/pre_clear_cache' - Allow developers to extend/override
     * cache clearing. Pass a truthy value to override the cache clearing.
     */
    apply_filters( 'rank_math/pre_clear_cache', false, $context );
  • includes/class-post.php line 107
    /**
     * Filter: Allow changing the page ID before we process anything.
     */
    apply_filters( 'rank_math/pre_simple_page_id', false );
  • includes/modules/redirections/class-table.php line 122
    /**
     * Filters the default column output. Pass non-empty value to enable.
     */
    apply_filters( "rank_math/redirection/admin_column_{$column_name}", false, $item );
  • includes/modules/redirections/class-table.php line 269
    /**
     * Filters the columns displayed in the Redirections table.
     */
    apply_filters( 'rank_math/redirection/admin_columns', [ 'cb' => '<input type="checkbox" />', 'sources' => esc_html__( 'From', 'seo-by-rank-math' ), 'url_to' => esc_html__( 'To', 'seo-by-rank-math' ), 'header_code' => esc_html__( 'Type', 'seo-by-rank-math' ), 'hits' => esc_html__( 'Hits', 'seo-by-rank-math' ), 'created' => esc_html__( 'Created', 'seo-by-rank-math' ), 'last_accessed' => esc_html__( 'Last Accessed', 'seo-by-rank-math' ), ] );
  • includes/modules/redirections/class-table.php line 323
    /**
     * Filters the list of bulk actions available on the Redirections table.
     */
    apply_filters( 'rank_math/redirection/bulk_actions', $actions );
  • includes/modules/redirections/class-db.php line 499
    /**
     * Fires after deleting redirections.
     */
    do_action( 'rank_math/redirection/deleted', $ids, $deleted );
  • includes/modules/redirections/class-table.php line 371
    /**
     * Filters the row class.
     */
    apply_filters( 'rank_math/redirection/row_classes', $classes, $item );
  • includes/admin/class-admin-helper.php line 170
    /**
     * Filter whether we need to check for URL mismatch or not.
     */
    apply_filters( 'rank_math/registration/do_url_check', ! get_option( 'rank_math_siteurl_mismatch_notice_dismissed' ) );
  • includes/replace-variables/class-replacer.php line 113
    /**
     * Filter: Allow customizing the replacements.
     */
    apply_filters( 'rank_math/replacements', $replacements, self::$args );
  • includes/replace-variables/class-replacer.php line 212
    /**
     * Filter: Allow changing the non-cacheable variables.
     */
    apply_filters( 'rank_math/replacements/non_cacheable', $non_cacheable );
  • includes/helpers/class-schema.php line 54
    /**
     * Filter: Allow changing the default schema type.
     */
    apply_filters( 'rank_math/schema/default_type', Helper::get_settings( "titles.pt_{$post_type}_default_article_type" ), $post_type, $post_id );
  • includes/helpers/class-choices.php line 468
    /**
     * Allow developers to add/remove Schema type choices.
     */
    apply_filters( 'rank_math/settings/snippet/types', $types, $post_type );
  • includes/helpers/class-conditional.php line 179
    /**
     * Enable SEO Score.
     */
    apply_filters( 'rank_math/show_score', true );
  • includes/class-post.php line 129
    /**
     * Filter: Allow changing the page ID.
     */
    apply_filters( 'rank_math/simple_page_id', 0 );
  • includes/modules/sitemap/class-router.php line 171
    /**
     * Filter the slug of the sitemap.
     */
    apply_filters( "rank_math/sitemap/{$type}/slug", $type );
  • includes/modules/sitemap/class-router.php line 156
    /**
     * Filter the base URL of the sitemaps.
     */
    apply_filters( 'rank_math/sitemap/base_url', $base );
  • includes/modules/sitemap/class-cache.php line 176
    /**
     * Filter XML sitemap cache directory.
     */
    apply_filters( 'rank_math/sitemap/cache_directory', $default );
  • includes/modules/sitemap/class-cache.php line 57
    /**
     * Change sitemap caching mode (can be "file" or "db").
     */
    apply_filters( 'rank_math/sitemap/cache_mode', $this->mode );
  • includes/modules/sitemap/class-sitemap.php line 273
    /**
     * Filter to enable/disable XML sitemap caching.
     */
    apply_filters( 'rank_math/sitemap/enable_caching', true );
  • includes/modules/sitemap/html-sitemap/class-sitemap.php line 197
    /**
     * Filter: 'rank_math/sitemap/html_sitemap_post_types' - Allow changing the
     * post types to be included in the HTML sitemap.
     */
    apply_filters( 'rank_math/sitemap/html_sitemap_post_types', $post_types );
  • includes/modules/sitemap/html-sitemap/class-sitemap.php line 242
    /**
     * Filter: 'rank_math/sitemap/html_sitemap_taxonomies' - Allow changing the
     * taxonomies to be included in the HTML sitemap.
     */
    apply_filters( 'rank_math/sitemap/html_sitemap_taxonomies', $taxonomies );
  • includes/modules/sitemap/class-sitemap.php line 294
    /**
     * Filter: 'rank_math/sitemap/include_noindex' - Include noindex data in
     * Sitemap.
     */
    apply_filters( 'rank_math/sitemap/include_noindex', false, $type );
  • includes/modules/sitemap/class-sitemap.php line 336
    /**
     * Filter: 'rank_math/sitemap/index_slug' - Modify the sitemap index slug.
     */
    apply_filters( 'rank_math/sitemap/index/slug', 'sitemap_index' );
  • includes/modules/sitemap/class-cache.php line 213
    /**
     * Filter: 'rank_math/sitemap/invalidate_storage' - Allow developers to disable
     * sitemap cache invalidation.
     */
    apply_filters( 'rank_math/sitemap/invalidate_storage', true, $type );
  • includes/modules/sitemap/class-cache.php line 251
    /**
     * Action: 'rank_math/sitemap/invalidated_storage' - Runs after sitemap cache
     * invalidation.
     */
    do_action( 'rank_math/sitemap/invalidated_storage', $type );
  • includes/modules/schema/snippets/class-products-page.php line 105
    /**
     * Allow developer to remove snippet data from Shop page.
     */
    apply_filters( 'rank_math/snippet/remove_shop_data', false );
  • includes/modules/schema/snippets/class-products-page.php line 81
    /**
     * Allow developer to remove snippet data.
     */
    apply_filters( 'rank_math/snippet/remove_taxonomy_data', false, $queried_object->taxonomy );
  • includes/helpers/class-choices.php line 41
    /**
     * Allow developers to add/remove overlay images.
     */
    apply_filters( 'rank_math/social/overlay_images', [ 'play' => [ 'name' => esc_html__( 'Play icon', 'seo-by-rank-math' ), 'url' => $uri . 'icon-play.png', 'path' => $dir . 'icon-play.png', ], 'gif' => [ 'name' => esc_html__( 'GIF icon', 'seo-by-rank-math' ), 'url' => $uri . 'icon-gif.png', 'path' => $dir . 'icon-gif.png', ], ] );
  • includes/helpers/class-choices.php line 544
    /**
     * Allow developer to change taxonomies icons.
     */
    apply_filters( 'rank_math/taxonomy_icons', [ 'default' => 'rm-icon rm-icon-category', 'category' => 'rm-icon rm-icon-category', 'post_tag' => 'rm-icon rm-icon-tag', 'product_cat' => 'rm-icon rm-icon-category', 'product_tag' => 'rm-icon rm-icon-tag', 'post_format' => 'rm-icon rm-icon-post-format', ] );
  • includes/helpers/class-conditional.php line 35
    /**
     * Enable whitelabel.
     */
    apply_filters( 'rank_math/whitelabel', false );
  • includes/helpers/class-wordpress.php line 557
    /**
     * Filter whether a post is able to be edited in the block editor.
     */
    apply_filters( 'use_block_editor_for_post_type', true, $post_type );
  • includes/admin/notifications/class-notification-center.php line 199
    /**
     * Filter: 'wp_helpers_notification_dismissed' - Allows developer to perform
     * action after dismissed.
     */
    do_action( 'wp_helpers_notification_dismissed', $notification_id, $notification );
  • includes/admin/notifications/class-notification-center.php line 168
    /**
     * Filter: 'wp_helpers_notifications_before_storage' - Allows developer to
     * filter notifications before saving them.
     */
    apply_filters( 'wp_helpers_notifications_before_storage', $notifications );
  • includes/admin/notifications/class-notification.php line 240
    /**
     * Filter: 'wp_helpers_notifications_render' - Allows developer to filter
     * notifications before the output is finalized.
     */
    apply_filters( 'wp_helpers_notifications_render', $output, $this->message, $this->options );
  • rank-math.php line 493 · used in 2 places
    apply_filters( 'rank_math_clear_data_on_uninstall', false );
  • includes/admin/class-sanitize-settings.php line 238 · used in 2 places
    apply_filters( 'rank_math/analytics/max_days_allowed', 90 );
  • includes/modules/analytics/class-analytics.php line 626 · used in 2 places
    apply_filters( 'rank_math/analytics/options/cache_control/description', $description );
  • includes/modules/analytics/class-analytics.php line 625 · used in 2 places
    apply_filters_deprecated( 'rank_math/analytics/options/cahce_control/description', [ $description ], '1.0.61.1', 'rank_math/analytics/options/cache_control/description' );
  • includes/modules/web-stories/class-web-stories.php line 47 · used in 2 places
    do_action( 'rank_math/head' );
  • includes/abilities/settings/class-set-module-status.php line 154 · used in 2 places
    do_action( 'rank_math/module_changed', $slug, $state );
  • includes/admin/class-sanitize-settings.php line 174 · used in 2 places
    apply_filters( 'sanitize_text_field', $filtered, $value );
  • includes/helpers/class-sitepress.php line 203 · used in 2 places
    apply_filters( 'wpml_post_language_details', null, $post_id );
  • includes/admin/class-admin.php line 483
    apply_filters( 'action_scheduler_pastdue_actions_check', $check, $num_pastdue_actions, $threshold_seconds, $threshold_min );
  • includes/admin/class-admin.php line 480
    apply_filters( 'action_scheduler_pastdue_actions_min', 1 );
  • includes/admin/class-admin.php line 479
    apply_filters( 'action_scheduler_pastdue_actions_seconds', DAY_IN_SECONDS );
  • includes/class-helper.php line 381
    apply_filters_ref_array( 'auto_update_plugin', [ true, (object) [] ] );
  • includes/class-helper.php line 382
    apply_filters_ref_array( 'automatic_updater_disabled', [ false ] );
  • includes/helpers/class-conditional.php line 345
    apply_filters( 'https_local_ssl_verify', true );
  • includes/modules/404-monitor/views/main.php line 23
    do_action( 'rank_math/404_monitor/before_list_table', $monitor );
  • includes/modules/404-monitor/class-db.php line 53
    apply_filters( 'rank_math/404_monitor/get_logs_args', $args );
  • includes/class-installer.php line 253
    apply_filters( 'rank_math/admin/create_tables', $tables, $modules );
  • includes/admin/class-post-columns.php line 567
    apply_filters( 'rank_math/admin/robots', $robots, $post_id );
  • includes/class-data-encryption.php line 176
    apply_filters( 'rank_math/admin/sensitive_data_encryption', true );
  • includes/modules/ai-visibility/class-cache.php line 60
    apply_filters( 'rank_math/ai_visibility/dashboard_ttl', 12 * HOUR_IN_SECONDS );
  • includes/abilities/seo-analysis/class-audit-runner.php line 60
    apply_filters( 'rank_math/analysis/is_allowed_url', false, $clean );
  • includes/abilities/analytics/class-top-keywords-runner.php line 93
    apply_filters( 'rank_math/analytics/ability/top_keywords', $keywords, $date_range );
  • includes/admin/wizard/views/search-console-ui.php line 370
    apply_filters( 'rank_math/analytics/adsense', ob_get_clean(), $analytics, $all_services );
  • includes/modules/analytics/class-summary.php line 481
    apply_filters( 'rank_math/analytics/analytics_summary_graph', $data, $intervals );
  • includes/modules/analytics/class-db.php line 154
    apply_filters( 'rank_math/analytics/analytics_tables_info', $data );
  • includes/modules/analytics/google/class-authentication.php line 127
    apply_filters( 'rank_math/analytics/app_url', 'https://oauth.rankmath.com' );
  • includes/modules/analytics/class-ajax.php line 401
    apply_filters( 'rank_math/analytics/check_all_services', $result );
  • includes/modules/analytics/workflows/class-workflow.php line 141
    do_action( 'rank_math/analytics/clear_cache' );
  • includes/admin/wizard/views/search-console-ui.php line 99
    apply_filters( 'rank_math/analytics/connect_actions', $connections );
  • includes/modules/analytics/class-db.php line 84
    do_action( 'rank_math/analytics/delete_by_days', $days );
  • includes/modules/analytics/class-db.php line 102
    do_action( 'rank_math/analytics/delete_data_log', $start );
  • includes/modules/analytics/class-email-reports.php line 264
    apply_filters( 'rank_math/analytics/email_report_periods', $periods );
  • includes/helpers/class-analytics.php line 34
    apply_filters( 'rank_math/analytics/frontend_stats', Helper::get_settings( 'general.analytics_stats' ) );
  • includes/modules/analytics/workflows/class-base.php line 169
    apply_filters( "rank_math/analytics/get_{$action}_days", [ 'start_date' => $dates['start_date'], 'end_date' => $dates['end_date'], ] );
  • includes/modules/analytics/class-db.php line 538
    do_action_ref_array( 'rank_math/analytics/get_inspections_count_query', [ &$query, $params ] );
  • includes/modules/analytics/class-db.php line 516
    do_action_ref_array( 'rank_math/analytics/get_inspections_query', [ &$query, $params ] );
  • includes/modules/analytics/class-db.php line 520
    apply_filters( 'rank_math/analytics/get_inspections_results', $results );
  • includes/modules/analytics/class-db.php line 463
    apply_filters( 'rank_math/analytics/get_page', $page );
  • includes/modules/analytics/class-posts.php line 59
    apply_filters( 'rank_math/analytics/get_posts_rows_by_objects', false, $request );
  • includes/modules/analytics/class-watcher.php line 102
    apply_filters( 'rank_math/analytics/get_translated_objects', $post_id );
  • includes/modules/analytics/class-summary.php line 157
    apply_filters( 'rank_math/analytics/get_widget', $stats );
  • includes/modules/analytics/google/class-request.php line 225
    do_action( "rank_math/analytics/handle_{$this->workflow}_response", [ 'formatted_response' => $formatted_response, 'response' => $response, 'http_verb' => $http_verb, 'url' => $url, 'args' => $args, 'code' => $code, ] );
  • includes/modules/analytics/class-email-reports.php line 646
    apply_filters( 'rank_math/analytics/hide_email_report_options', false );
  • includes/modules/analytics/class-db.php line 309
    apply_filters( 'rank_math/analytics/inspection_defaults', $defaults );
  • includes/modules/analytics/class-keywords.php line 88
    apply_filters( 'rank_math/analytics/keywords', $rows );
  • includes/modules/analytics/rest/class-rest.php line 300
    apply_filters( 'rank_math/analytics/keywords_overview', [ 'topKeywords' => Stats::get()->get_top_keywords(), 'positionGraph' => Stats::get()->get_top_position_graph(), ] );
  • includes/modules/analytics/google/class-request.php line 252
    do_action( 'rank_math/analytics/log', $http_verb, $url, $args, $response, $formatted_response, $params );
  • includes/modules/analytics/google/class-request.php line 254
    apply_filters( 'rank_math/analytics/log_response', false );
  • includes/modules/analytics/class-analytics.php line 629
    apply_filters( "rank_math/analytics/options/{$field_id}/description", '' );
  • includes/admin/wizard/views/search-console-ui.php line 253
    do_action( 'rank_math/analytics/options/analytics' );
  • includes/admin/wizard/views/search-console-ui.php line 147
    do_action( 'rank_math/analytics/options/console' );
  • includes/modules/analytics/class-analytics.php line 578
    apply_filters( 'rank_math/analytics/options/data', [ 'analytics' => \RankMath\Wizard\Search_Console::get_localized_data(), 'isSettingsPage' => true, 'homeUrl' => home_url(), 'fields' => [ 'console_caching_control' => [ 'description' => $this->get_description( 'console_caching_control' ), ], ], 'dbInfo' => [ 'days' => $db_info['days'] ?? 0, 'rows' => Str::human_number( $db_info['rows'] ?? 0 ), 'size' => size_format( $db_info['size'] ?? 0 ), ], '... );
  • includes/admin/wizard/views/search-console-ui.php line 403
    do_action( 'rank_math/analytics/options/wizard_after_email_report' );
  • includes/modules/analytics/class-db.php line 487
    apply_filters( 'rank_math/analytics/position_limit', false );
  • includes/modules/analytics/class-posts.php line 48
    apply_filters( 'rank_math/analytics/post_data', (array) $post, $request );
  • includes/modules/analytics/class-summary.php line 357
    apply_filters( 'rank_math/analytics/posts_summary', $summary, $post_type, $query );
  • includes/modules/analytics/class-db.php line 116
    do_action( 'rank_math/analytics/purge_cache', $table );
  • includes/modules/analytics/google/class-api.php line 63
    apply_filters( 'rank_math/analytics/row_limit', 10000 );
  • includes/modules/analytics/class-summary.php line 315
    apply_filters( 'rank_math/analytics/summary', $stats );
  • includes/modules/analytics/google/class-url-inspection.php line 138
    apply_filters( 'rank_math/analytics/url_inspection_map_properties', $normalized, $incoming );
  • includes/modules/analytics/class-analytics.php line 403
    apply_filters( 'rank_math/analytics/user_preference', [ 'topPosts' => [ 'seo_score' => false, 'schemas_in_use' => false, 'impressions' => true, 'pageviews' => true, 'clicks' => false, 'position' => true, 'positionHistory' => true, ], 'siteAnalytics' => [ 'seo_score' => true, 'schemas_in_use' => true, 'impressions' => false, 'pageviews' => true, 'links' => true, 'clicks' => false, 'position' => false, 'positionHistory' => false, ], 'performance' =>... );
  • includes/modules/analytics/workflows/class-workflow.php line 99
    do_action( "rank_math/analytics/workflow/{$action}", $days, $prev, $new_value );
  • includes/modules/schema/blocks/class-block.php line 102
    apply_filters( "rank_math/blocks/{$block}/title_wrapper", $wrapper );
  • includes/traits/class-cache.php line 116
    apply_filters( 'rank_math/cache/enabled', true );
  • includes/traits/class-cache.php line 42
    apply_filters( 'rank_math/cache/generate_hash', trim( $value ) );
  • includes/admin/class-admin-helper.php line 132
    do_action( 'rank_math/connect/account_connected', $data );
  • includes/modules/content-ai/class-rest.php line 338
    apply_filters( 'rank_math/content_ai/call_api', true );
  • includes/modules/content-ai/class-rest.php line 587
    do_action( 'rank_math/content_ai/generate_alt', $ids );
  • includes/modules/content-ai/class-event-scheduler.php line 135
    do_action( 'rank_math/content-ai/update_prompts' );
  • includes/admin/database/class-query-builder.php line 377
    apply_filters( 'rank_math/database/query/results', $results, $args, $start_time );
  • includes/admin/class-admin-helper.php line 247
    do_action( 'rank_math/deregister_site' );
  • includes/helpers/class-content-ai.php line 670
    apply_filters( 'rank_math/determine_search_intent', true );
  • includes/class-helper.php line 393
    apply_filters( 'rank_math/enable_big_selects', true );
  • includes/modules/status/class-import-export-settings.php line 238
    apply_filters( 'rank_math/export/settings', $data, $panel );
  • includes/rest/class-shared.php line 126
    apply_filters( 'rank_math/filter_metadata', $request->get_param( 'meta' ), $request );
  • includes/template-tags.php line 19
    apply_filters( 'rank_math/gutenberg/enabled', true );
  • includes/helpers/class-conditional.php line 265
    apply_filters( 'rank_math/is_react_enabled', true );
  • includes/class-json-manager.php line 114
    apply_filters( 'rank_math/json_data', $object_data );
  • includes/helpers/class-choices.php line 151
    apply_filters( 'rank_math/json_ld/business_types', [ [ 'label' => 'Organization', 'child' => [ [ 'label' => 'Airline' ], [ 'label' => 'Consortium' ], [ 'label' => 'Corporation' ], [ 'label' => 'Educational Organization', 'child' => [ [ 'label' => 'College Or University' ], [ 'label' => 'Elementary School' ], [ 'label' => 'High School' ], [ 'label' => 'Middle School' ], [ 'label' => 'Preschool' ], [ 'label' => 'School' ], ], ], [ 'label' => 'Fun... );
  • includes/admin/class-admin-helper.php line 358
    apply_filters( 'rank_math/license/activate_url', Security::add_query_arg_raw( $args, RANK_MATH_SITE_URL . '/auth' ), $args );
  • rank-math.php line 188
    do_action( 'rank_math/loaded' );
  • includes/helpers/class-editor.php line 39
    apply_filters( 'rank_math/lock_modified_date', true );
  • includes/helpers/class-post-type.php line 175
    apply_filters( 'rank_math/metabox/add_seo_metabox', Helper::get_settings( 'titles.pt_' . $post_type . '_add_meta_box', 'web-story' !== $post_type ) );
  • includes/frontend/paper/class-paper.php line 547
    apply_filters( 'rank_math/paper/auto_generated_description/apply_shortcode', false );
  • includes/rest/class-shared.php line 137
    do_action( 'rank_math/pre_update_metadata', $object_id, $object_type, $content );
  • includes/rest/class-shared.php line 194
    do_action( 'rank_math/pre_update_schema', $object_id, $object_type );
  • includes/admin/class-admin-header.php line 48
    do_action( 'rank_math/pro_badge' );
  • includes/modules/database-tools/class-update-score.php line 47
    apply_filters( 'rank_math/recalculate_scores_batch_size', 25 );
  • includes/admin/importers/class-redirections.php line 82
    do_action( 'rank_math/redirection/after_import', $id, $row );
  • includes/modules/redirections/class-table.php line 386
    do_action( 'rank_math/redirection/extra_tablenav', $which );
  • includes/modules/redirections/class-db.php line 273
    apply_filters( 'rank_math/redirection/get_clean_pattern', $cleaned, $pattern, $comparison );
  • includes/modules/redirections/class-db.php line 120
    do_action_ref_array( 'rank_math/redirection/get_redirections_query', [ &$table, $args ] );
  • includes/modules/schema/blocks/faq/class-block-faq.php line 176
    apply_filters( 'rank_math/schema/block/faq/content', wp_kses_post( join( "\n", $out ) ), $out, $attributes );
  • includes/modules/schema/blocks/howto/class-block-howto.php line 198
    apply_filters( 'rank_math/schema/block/howto/content', wp_kses_post( join( "\n", $out ) ), $out, $attributes );
  • includes/modules/schema/blocks/toc/class-block-toc.php line 167
    apply_filters( 'rank_math/schema/block/toc/content', wp_kses_post( $block_content ), $block_content, $parsed_block['attrs'] );
  • includes/rest/class-shared.php line 191
    apply_filters( 'rank_math/schema/filter_data', $request->get_param( 'schemas' ), $request );
  • includes/rest/class-shared.php line 234
    do_action( 'rank_math/schema/update', $object_id, $schemas, $object_type );
  • includes/helpers/class-schema.php line 145
    apply_filters( 'rank_math/schema/use_default_product', true );
  • includes/modules/seo-analysis/class-result.php line 146
    apply_filters( 'rank_math/seo_analysis/is_test_hidden', $is_hidden, $this->id );
  • includes/modules/seo-analysis/seo-analysis-tests.php line 314
    apply_filters( 'rank_math/seo_analysis/postmeta_table_limit', 200000 );
  • includes/admin/class-option-center.php line 429
    do_action( 'rank_math/settings/after_save', $type, $changed_settings );
  • includes/admin/class-option-center.php line 387
    do_action( 'rank_math/settings/before_save', $type, $settings );
  • includes/admin/class-sanitize-settings.php line 51
    apply_filters( 'rank_math/settings/sanitize_fields', self::sanitize_by_field_id( $value, $field_id ), $value, $field_id );
  • includes/admin/class-option-center.php line 433
    apply_filters( 'rank_math/settings/saved_data', Helper::get_settings( $type ), $type );
  • includes/helpers/class-api.php line 90
    do_action( 'rank_math/settings/toggle_auto_update', $toggle );
  • includes/helpers/class-conditional.php line 254
    apply_filters( 'rank_math/setup_mode', Helper::get_settings( 'general.setup_mode', 'advanced' ) );
  • includes/admin/class-setup-wizard.php line 141
    apply_filters( "rank_math/setup_wizard/{$step}/localized_data", array_merge( $data, $steps[ $step ]::get_localized_data() ) );
  • includes/admin/class-setup-wizard.php line 162
    do_action( "rank_math/setup_wizard/{$step}/save_data", $values );
  • includes/rest/class-setup-wizard.php line 105
    do_action( 'rank_math/setup_wizard/enable_tracking', $enable_tracking === 'on' );
  • includes/rest/class-setup-wizard.php line 79
    do_action( 'rank_math/setup_wizard/step_viewed', $step );
  • includes/frontend/class-shortcodes.php line 486
    apply_filters( 'rank_math/shortcode/contact/address_parts_format', '<span class="contact-address-%1$s">%2$s</span>' );
  • includes/modules/sitemap/class-cache-watcher.php line 177
    do_action( 'rank_math/sitemap/hit_index' );
  • includes/abilities/sitemap/class-get-sitemap-status.php line 180
    apply_filters( 'rank_math/sitemap/index', '' );
  • includes/abilities/sitemap/class-get-sitemap-status.php line 268
    apply_filters( 'rank_math/sitemap/locations', false );
  • includes/abilities/sitemap/class-get-sitemap-status.php line 273
    apply_filters( 'rank_math/sitemap/locations/data', [ [ 'name' => Helper::get_settings( 'titles.knowledgegraph_name' ) ] ] );
  • includes/modules/sitemap/class-sitemap.php line 310
    apply_filters( 'rank_math/sitemap/maybe_redirect', true );
  • includes/helpers/class-post-type.php line 81
    apply_filters( 'rank_math/sitemap/posts_to_exclude', $posts_to_exclude );
  • includes/modules/schema/snippets/class-breadcrumbs.php line 63
    apply_filters( 'rank_math/snippet/breadcrumb', $entity );
  • includes/helpers/class-choices.php line 59
    apply_filters( 'rank_math/social/overlay_image_position', 'middle_center', $name );
  • includes/modules/status/class-rest.php line 151
    apply_filters( "rank_math/status/{$view}/json_data", $hash[ $view ]::get_json_data() );
  • includes/modules/status/class-system-status.php line 149
    apply_filters( 'rank_math/status/rank_math_info', $rankmath );
  • includes/rest/class-admin.php line 158
    apply_filters( "rank_math/tools/{$action}", 'Something went wrong.', $request );
  • includes/replace-variables/class-variable.php line 189
    apply_filters( "rank_math/vars/{$this->get_id()}", $var_args, $this );
  • includes/admin/class-setup-wizard.php line 191
    apply_filters( 'rank_math/wizard/pre_remove_import_step', null );
  • includes/modules/woocommerce/class-base.php line 74
    apply_filters( 'rank_math/woocommerce/product_brand', $brand );
  • includes/admin/class-page.php line 324
    do_action( 'rank-math/admin_enqueue_scripts' );
  • robots_txt

    filter
    includes/modules/robots-txt/class-robots-txt.php line 103
    apply_filters( 'robots_txt', $default, $public );
  • wp

    action
    includes/rest/class-headless.php line 105
    do_action( 'wp' );
  • includes/modules/sitemap/class-image-parser.php line 406
    apply_filters( 'wp_get_attachment_url', $src, $post_id );
  • includes/modules/schema/snippets/class-webpage.php line 96
    apply_filters( 'wpml_object_id', $page_id, 'page', true );

Generated from Rank Math 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: