Gofer SEO 1.0.4 has 16 actions and 155 filters, read directly from its source code on Nov 19, 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 Gofer SEO fires an action
add_action( 'gofer_seo_admin_post_update_values', function( $new_values, $post_id ) {
// Your code runs here.
}, 10, 2 );
// Change a value Gofer SEO is about to use
add_filter( 'gofer_seo_amp_schema', 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
-
/** * AMP Schema Enable/Disable */ apply_filters( 'gofer_seo_amp_schema', true ); -
/** * Filters the sitemap entry for an individual post. */ apply_filters( 'gofer_seo_sitemaps_dates_entry', $sitemap_entry, $date_result, $post_type ); -
/** * Filters the query arguments for post type sitemap queries. */ apply_filters( 'gofer_seo_sitemaps_posts_query_args', $args, $post_types ); -
/** * Filters a string cleaned and escaped for output in XML. */ apply_filters( 'esc_xml', $safe_text, $text ); -
/** * Filters the found terms. */ apply_filters( 'get_terms', $terms, $term_query->query_vars['taxonomy'], $term_query->query_vars, $term_query ); -
/** * Advanced Module Get Values. */ apply_filters( 'gofer_seo_admin_module_advanced_get_values', $values ); -
/** * Advanced Module Input Typeset. */ apply_filters( 'gofer_seo_admin_module_advanced_input_typesets', $input_typesets ); -
/** * Advanced Module Meta Box Typesets. */ apply_filters( 'gofer_seo_admin_module_advanced_meta_box_typesets', $meta_box_typesets ); -
/** * Advanced Module Update Values. */ apply_filters( 'gofer_seo_admin_module_advanced_update_values', $new_values ); -
/** * Crawlers Module Get Values. */ apply_filters( 'gofer_seo_admin_module_crawlers_get_values', $values ); -
/** * Crawlers Module Input Typeset. */ apply_filters( 'gofer_seo_admin_module_crawlers_input_typesets', $input_typesets ); -
/** * Crawlers Module Meta Box Typesets. */ apply_filters( 'gofer_seo_admin_module_crawlers_meta_box_typesets', $meta_box_typesets ); -
/** * Crawlers Module Update Values. */ apply_filters( 'gofer_seo_admin_module_crawlers_update_values', $new_values ); -
/** * Debugger Module Get Values. */ apply_filters( 'gofer_seo_admin_module_debugger_get_values', $values ); -
/** * Debugger Module Input Typeset. */ apply_filters( 'gofer_seo_admin_module_debugger_input_typesets', $input_typesets ); -
/** * Debugger Module Meta Box Typesets. */ apply_filters( 'gofer_seo_admin_module_debugger_meta_box_typesets', $meta_box_typesets ); -
/** * Debugger Module Update Values. */ apply_filters( 'gofer_seo_admin_module_debugger_update_values', $new_values ); -
/** * General Module Get Values. */ apply_filters( 'gofer_seo_admin_module_general_get_values', $values ); -
/** * General Module Input Typeset. */ apply_filters( 'gofer_seo_admin_module_general_input_typesets', $input_typesets ); -
/** * General Module Meta Box Typesets. */ apply_filters( 'gofer_seo_admin_module_general_meta_box_typesets', $meta_box_typesets ); -
/** * General Module Update Values. */ apply_filters( 'gofer_seo_admin_module_general_update_values', $new_values ); -
/** * Schema Graph Module Get Values. */ apply_filters( 'gofer_seo_admin_module_schema_graph_get_values', $values ); -
/** * Schema Graph Module Input Typeset. */ apply_filters( 'gofer_seo_admin_module_schema_graph_input_typesets', $input_typesets ); -
/** * Schema Graph Module Meta Box Typesets. */ apply_filters( 'gofer_seo_admin_module_schema_graph_meta_box_typesets', $meta_box_typesets ); -
/** * Schema Graph Module Update Values. */ apply_filters( 'gofer_seo_admin_module_schema_graph_update_values', $new_values ); -
/** * Sitemap Module Get Values. */ apply_filters( 'gofer_seo_admin_module_sitemap_get_values', $values ); -
/** * Sitemap Module Input Typeset. */ apply_filters( 'gofer_seo_admin_module_sitemap_input_typesets', $input_typesets ); -
/** * Sitemap Module Meta Box Typesets. */ apply_filters( 'gofer_seo_admin_module_sitemap_meta_box_typesets', $meta_box_typesets ); -
/** * Sitemap Module Update Values. */ apply_filters( 'gofer_seo_admin_module_sitemap_update_values', $new_values ); -
/** * Social Media Module Get Values. */ apply_filters( 'gofer_seo_admin_module_social_media_get_values', $values ); -
/** * Social Media Module Input Typeset. */ apply_filters( 'gofer_seo_admin_module_social_media_input_typesets', $input_typesets ); -
/** * Social Media Module Meta Box Typesets. */ apply_filters( 'gofer_seo_admin_module_social_media_meta_box_typesets', $meta_box_typesets ); -
/** * Social Media Module Update Values. */ apply_filters( 'gofer_seo_admin_module_social_media_update_values', $new_values ); -
/** * Admin Notice {$slug} */ apply_filters( "gofer_seo_admin_notice-{$slug}", array() ); -
/** * Post Get Values. */ apply_filters( 'gofer_seo_admin_post_get_values', array(), $post_id, $args ); -
/** * Post Hook Suffixes. */ apply_filters( 'gofer_seo_admin_post_hook_suffixes', $hook_suffixes ); -
/** * Post Input Typesets. */ apply_filters( 'gofer_seo_admin_post_input_typesets', array() ); -
/** * Post Metabox Typesets. */ apply_filters( 'gofer_seo_admin_post_meta_box_typesets', array() ); -
/** * Post Screen IDs. */ apply_filters( 'gofer_seo_admin_post_screen_ids', $screen_ids ); -
/** * Post Update Values. */ do_action( 'gofer_seo_admin_post_update_values', $new_values, $post_id ); -
/** * Post Get Values. */ apply_filters( 'gofer_seo_admin_term_get_values', array(), $term_id, $args ); -
/** * Hook Suffixes. */ apply_filters( 'gofer_seo_admin_term_hook_suffixes', $hook_suffixes ); -
/** * Input Typesets. */ apply_filters( 'gofer_seo_admin_term_input_typesets', array() ); -
/** * Metabox Typesets. */ apply_filters( 'gofer_seo_admin_term_meta_box_typesets', array() ); -
/** * Screen IDs. */ apply_filters( 'gofer_seo_admin_term_screen_ids', $screen_ids ); -
/** * Post Update Values. */ do_action( 'gofer_seo_admin_term_update_values', $new_values, $term_id, $data ); -
/** * Post Get Values. */ apply_filters( 'gofer_seo_admin_user_get_values', array(), $user_id, $args ); -
/** * Hook Suffixes. */ apply_filters( 'gofer_seo_admin_user_hook_suffixes', $hook_suffixes ); -
/** * Input Typesets. */ apply_filters( 'gofer_seo_admin_user_input_typesets', array() ); -
/** * Metabox Typesets. */ apply_filters( 'gofer_seo_admin_user_meta_box_typesets', array() ); -
/** * Screen IDs. */ apply_filters( 'gofer_seo_admin_user_screen_ids', $screen_ids ); -
/** * Post Update Values. */ do_action( 'gofer_seo_admin_user_update_values', $new_values, $user_id ); -
/** * After including Template. */ do_action( 'gofer_seo_after_template', $gofer_seo_template['template_path'], $gofer_seo_template['theme_sub_dir'], $gofer_seo_template['dir'], $gofer_seo_template['template_file'], $gofer_seo_template['args'] ); -
/** * Gofer SEO AMP Description. */ apply_filters( 'gofer_seo_amp_description', $description ); -
/** * Before including Template. */ do_action( 'gofer_seo_before_template', $gofer_seo_template['template_path'], $gofer_seo_template['theme_sub_dir'], $gofer_seo_template['dir'], $gofer_seo_template['template_file'], $gofer_seo_template['args'] ); -
/** * Crawler/Bot Agent Blacklist. */ apply_filters( 'gofer_seo_crawler_agent_blacklist', $agents ); -
/** * Crawler/Bot Agent Whitelist. */ apply_filters( 'gofer_seo_crawler_agent_whitelist', $agents ); -
/** * Crawler/Bot Referer Blacklist. */ apply_filters( 'gofer_seo_crawler_referer_blacklist', $referers ); -
/** * Meta Description Attributes. */ apply_filters( 'gofer_seo_description_attributes', $desc_attr ); -
/** * Fires when an error is added to a Gofer_SEO_Error object. */ do_action( 'gofer_seo_error_added', $code, $props, $data, $args, $this ); -
/** * Preset operations used when an error occurs. */ apply_filters( 'gofer_seo_error_preset_operations', $presets ); -
/** * Fires when an error is added to a Gofer_SEO_Error object. */ do_action( 'gofer_seo_errors_added', $code, $props, $data, $this ); -
/** * Filter Description. */ apply_filters( 'gofer_seo_filter_description', $description, $truncate, $ignore_php_version ); -
/** * Prototype Filter. */ apply_filters( 'gofer_seo_format_shortcode_site_title', $rtn_str, $attrs, $this->context ); -
/** * Format Shortcodes Class is Loaded. */ do_action( 'gofer_seo_format_shortcodes_loaded', $this ); -
/** * General Module Keywords. */ apply_filters( 'gofer_seo_general_keywords', $keywords, $keywords_arr ); -
/** * Generate Descriptions using the Post Content. */ apply_filters( 'gofer_seo_generate_description_use_content', $use_content ); -
/** * Internal filter. Don't output certain GA features if Google Tag Manager is * active. */ apply_filters( 'gofer_seo_gtm_enabled', __return_false() ); -
/** * Filter the located template. */ apply_filters( 'gofer_seo_locate_template', $template, $template_path, $theme_sub_dir, $dir ); -
/** * Must-Use Modules. */ apply_filters( 'gofer_seo_mu_modules', $mu_modules ); -
/** * Filters the list of post object sub types available within the sitemap. */ apply_filters( 'gofer_seo_news_sitemap_post_types', $post_types ); -
/** * Filters the sitemap entry for the sitemap index. */ apply_filters( 'gofer_seo_news_sitemaps_index_entry', $sitemap_entry, $this->object_type, $type['name'], $page ); -
/** * Filters the sitemap entry for an individual post. */ apply_filters( 'gofer_seo_news_sitemaps_posts_entry', $sitemap_entry, $post, $post->post_type ); -
/** * Filters the content of the sitemap stylesheet. */ apply_filters( 'gofer_seo_news_sitemaps_stylesheet_content', $xsl_content ); -
/** * Filters the CSS only for the sitemap stylesheet. */ apply_filters( 'gofer_seo_news_sitemaps_stylesheet_css', $css ); -
/** * Filters the content of the sitemap index stylesheet. */ apply_filters( 'gofer_seo_news_sitemaps_stylesheet_index_content', $xsl_content ); -
/** * Filters the URL for the sitemap index stylesheet. */ apply_filters( 'gofer_seo_news_sitemaps_stylesheet_index_url', $sitemap_url ); -
/** * Filters the URL for the sitemap stylesheet. */ apply_filters( 'gofer_seo_news_sitemaps_stylesheet_url', $sitemap_url ); -
/** * The NoIndex RSS filter hook. */ apply_filters( 'gofer_seo_noindex_rss', true ); -
/** * Module Manager Typeset. */ apply_filters( 'gofer_seo_options_enable_modules_typeset', array() ); -
/** * Modules Typeset. */ apply_filters( 'gofer_seo_options_modules_typeset', array() ); -
/** * Modules Typeset. */ apply_filters( 'gofer_seo_options_typeset', $typesets ); -
/** * Register Admin Post Editor Modules. */ apply_filters( 'gofer_seo_register_ext_screen_modules', $ext_modules ); -
/** * Register Admin Post Editor Modules. */ apply_filters( 'gofer_seo_register_ext_screen_post_edit_modules', $post_edit_modules ); -
/** * Register Admin Post Editor Modules. */ apply_filters( 'gofer_seo_register_ext_screen_term_edit_modules', $term_editor_modules ); -
/** * Register Admin User Editor Modules. */ apply_filters( 'gofer_seo_register_ext_screen_user_edit_modules', $user_editor_modules ); -
/** * Register Format Shortcodes. */ apply_filters( 'gofer_seo_register_format_shortcodes', $shortcodes ); -
/** * Register Admin Module Screens. */ apply_filters( 'gofer_seo_register_module_screens', $module_screens ); -
/** * Register Modules. */ apply_filters( 'gofer_seo_register_modules', $modules ); -
/** * Register Schema Objects */ apply_filters( 'gofer_seo_register_schema_objects', $graphs ); -
/** * Register Admin Screens. */ apply_filters( 'gofer_seo_register_screens', $admin_screens ); -
/** * Filters whether to display the URL to the XML Sitemap on our virtual * robots.txt file. */ apply_filters( 'gofer_seo_robots_txt_sitemaps', true ); -
/** * Filters the list of post object sub types available within the sitemap. */ apply_filters( 'gofer_seo_rss_sitemap_post_types', $post_types ); -
/** * Filters the sitemap entry for the sitemap index. */ apply_filters( 'gofer_seo_rss_sitemaps_index_entry', $sitemap_entry, $this->object_type, $type['name'], $page ); -
/** * Filters the sitemap entry for an individual post. */ apply_filters( 'gofer_seo_rss_sitemaps_posts_entry', $sitemap_entry, $post, $post->post_type ); -
/** * Filters the query arguments for post type sitemap queries. */ apply_filters( 'gofer_seo_rss_sitemaps_posts_query_args', $args, $post_types ); -
/** * Filters the content of the sitemap stylesheet. */ apply_filters( 'gofer_seo_rss_sitemaps_stylesheet_content', $xsl_content ); -
/** * Filters the CSS only for the sitemap stylesheet. */ apply_filters( 'gofer_seo_rss_sitemaps_stylesheet_css', $css ); -
/** * Filters the content of the sitemap index stylesheet. */ apply_filters( 'gofer_seo_rss_sitemaps_stylesheet_index_content', $xsl_content ); -
/** * Filters the URL for the sitemap index stylesheet. */ apply_filters( 'gofer_seo_rss_sitemaps_stylesheet_index_url', $sitemap_url ); -
/** * Filters the URL for the sitemap stylesheet. */ apply_filters( 'gofer_seo_rss_sitemaps_stylesheet_url', $sitemap_url ); -
/** * Sanitized slug string. */ apply_filters( 'gofer_seo_sanitize_slug', $sanitized_slug, $slug, $args ); -
/** * Schema Class's Prepared Data */ apply_filters( "gofer_seo_schema_class_data_{get_class($this)}", $this->prepare() ); -
/** * Schema Layout */ apply_filters( 'gofer_seo_schema_layout', $layout ); -
/** * Set Help Text */ apply_filters( 'gofer_seo_set_tooltips_html', $this->tooltips_html, $screen_id ); -
/** * Filters the list of post object sub types available within the sitemap. */ apply_filters( 'gofer_seo_sitemap_dates_post_types', $post_types ); -
/** * Filters the filename: sitemap OR video_sitemap filename. */ apply_filters( 'gofer_seo_sitemap_filename', $filename ); -
/** * Filters the list of post object sub types available within the sitemap. */ apply_filters( 'gofer_seo_sitemap_post_types', $post_types ); -
/** * Filters the list of taxonomy object subtypes available within the sitemap. */ apply_filters( 'gofer_seo_sitemap_taxonomies', $taxonomies ); -
/** * Filters the query arguments for post type sitemap queries. */ apply_filters( 'gofer_seo_sitemaps_dates_query_args', $args, $post_types ); -
/** * Filters the sitemap entry for the sitemap index. */ apply_filters( 'gofer_seo_sitemaps_index_entry', $sitemap_entry, $this->object_type, $type['name'], $page ); -
/** * Filters the sitemap entry for an individual post. */ apply_filters( 'gofer_seo_sitemaps_posts_entry', $sitemap_entry, $post, $post->post_type ); -
/** * Filters the content of the sitemap stylesheet. */ apply_filters( 'gofer_seo_sitemaps_stylesheet_content', $xsl_content ); -
/** * Filters the CSS only for the sitemap stylesheet. */ apply_filters( 'gofer_seo_sitemaps_stylesheet_css', $css ); -
/** * Filters the content of the sitemap index stylesheet. */ apply_filters( 'gofer_seo_sitemaps_stylesheet_index_content', $xsl_content ); -
/** * Filters the URL for the sitemap index stylesheet. */ apply_filters( 'gofer_seo_sitemaps_stylesheet_index_url', $sitemap_url ); -
/** * Filters the URL for the sitemap stylesheet. */ apply_filters( 'gofer_seo_sitemaps_stylesheet_url', $sitemap_url ); -
/** * Filters the sitemap entry for an individual term. */ apply_filters( 'gofer_seo_sitemaps_taxonomies_entry', $sitemap_entry, $term, $term->taxonomy ); -
/** * Filters the taxonomy terms query arguments. */ apply_filters( 'gofer_seo_sitemaps_taxonomies_query_args', $args, $taxonomies ); -
/** * Filters the sitemap entry for an individual user. */ apply_filters( 'gofer_seo_sitemaps_users_entry', $sitemap_entry, $user ); -
/** * Filters the query arguments for authors with public posts. */ apply_filters( 'gofer_seo_sitemaps_users_query_args', $args ); -
/** * Template Arguments. */ apply_filters( 'gofer_seo_template_args', $args, $template_path, $theme_sub_dir, $dir ); -
/** * Used to override templates. */ apply_filters( 'gofer_seo_template_dir', $dir, $template_path ); -
/** * TODO phpDoc. */ apply_filters( 'gofer_seo_updater_register_update_options', $update_options_classes ); -
/** * URL Scheme. */ apply_filters( 'gofer_seo_url_scheme', false, $url ); -
/** * Gofer SEO - WP Head */ do_action( 'gofer_seo_wp_head' ); -
/** * Gofer SEO - WP Title */ apply_filters( 'gofer_seo_wp_title', $title ); -
/** * Filters the robots.txt output. */ apply_filters( 'robots_txt', $output, $public ); -
/** * Filters the sitemap entry for the sitemap index. */ apply_filters( 'wp_sitemaps_index_entry', $sitemap_entry, $this->object_type, $type['name'], $page ); -
/** * Filters the content of the sitemap stylesheet. */ apply_filters( 'wp_sitemaps_stylesheet_content', $xsl_content ); -
/** * Filters the CSS only for the sitemap stylesheet. */ apply_filters( 'wp_sitemaps_stylesheet_css', $css ); -
/** * Filters the content of the sitemap index stylesheet. */ apply_filters( 'wp_sitemaps_stylesheet_index_content', $xsl_content ); -
/** * Filters the URL for the sitemap index stylesheet. */ apply_filters( 'wp_sitemaps_stylesheet_index_url', $sitemap_url ); -
/** * Filters the URL for the sitemap stylesheet. */ apply_filters( 'wp_sitemaps_stylesheet_url', $sitemap_url ); -
apply_filters( 'gofer_seo_rel_canonical_url_pagination', $show_page ); -
do_action( 'add_meta_boxes', $current_screen->id, $term ); -
do_action( 'do_robotstxt' ); -
do_action( 'gofer_seo_after_doing_updates' ); -
do_action( 'gofer_seo_after_google_analytics' ); -
apply_filters( 'gofer_seo_amp_description_attributes', $desc_attr ); -
do_action( 'gofer_seo_before_doing_updates' ); -
apply_filters( 'gofer_seo_disable_twitter_plugin_card', true ); -
apply_filters( 'gofer_seo_enable_amp_social_meta', true ); -
apply_filters( 'gofer_seo_filter_title', $title ); -
apply_filters( 'gofer_seo_ga_enable_autotrack', $enable_autotrack ); -
apply_filters( 'gofer_seo_ga_extra_commands', $extra_commands ); -
apply_filters( 'gofer_seo_general_allow_post_with_password', false ); -
apply_filters( 'gofer_seo_general_author_attributes', '' ); -
apply_filters( 'gofer_seo_general_keywords_attributes', '' ); -
apply_filters( 'gofer_seo_general_publisher_attributes', '' ); -
apply_filters( 'gofer_seo_google_analytics', $output ); -
apply_filters( 'gofer_seo_google_autotrack', GOFER_SEO_URL . 'assets/google-analytics-autotrack-v2.4.1/autotrack.js' ); -
apply_filters( 'gofer_seo_lang_attributes', array( 'prefix="og: https://ogp.me/ns#"' ) ); -
apply_filters( 'gofer_seo_localization', $in ); -
apply_filters( 'gofer_seo_next_link', $prev_next['next'] ); -
apply_filters( 'gofer_seo_post_modules_typeset', array() ); -
apply_filters( 'gofer_seo_post_typeset', $typesets ); -
apply_filters( 'gofer_seo_prev_link', $prev_next['prev'] ); -
apply_filters( 'gofer_seo_rel_canonical_url', $url ); -
apply_filters( 'gofer_seo_sanitize_sitemap_url', $url ); -
do_action( 'gofer_seo_schema_internal_shortcodes_off' ); -
do_action( 'gofer_seo_schema_internal_shortcodes_on' ); -
apply_filters( 'gofer_seo_sitemap_ping', true ); -
apply_filters( 'gofer_seo_sitemap_ping_urls', $notify_url ); -
apply_filters( 'gofer_seo_sitemap_post_counts', $post_counts, $args ); -
apply_filters( 'gofer_seo_sitemap_term_counts', $term_counts, $args ); -
apply_filters( 'gofer_seo_term_modules_typeset', array() ); -
apply_filters( 'gofer_seo_term_typeset', $typesets ); -
apply_filters( 'gofer_seo_user_modules_typeset', array() ); -
apply_filters( 'gofer_seo_user_typeset', $typesets ); -
apply_filters( 'wpml_home_url', home_url( '/' ) );
Generated from Gofer SEO's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: