Simple SEO icon
SEO

Simple SEO hooks reference

Simple SEO 1.5.0 has 0 actions and 9 filters, read directly from its source code on Nov 18, 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
// Change a value Simple SEO is about to use
add_filter( 'simple_seo_active_seo_plugin', function( $active ) {
	// Change $active here.
	return $active;
}, 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

  • src/frontend.php line 74
    /**
     * Filters the name of another active SEO plugin. While it's not '', Simple SEO
     * outputs nothing and the editor fields say that plugin is in charge.
     */
    apply_filters( 'simple_seo_active_seo_plugin', $active );
  • src/frontend.php line 208
    /**
     * Filters whether comments mark the start and end of Simple SEO's tags in the
     * head. On by default only when wp_get_environment_type() is 'local'.
     */
    apply_filters( 'simple_seo_debug_comments', 'local' === wp_get_environment_type() );
  • src/frontend.php line 180
    /**
     * Filters the meta description, also used in link previews. Return '' for
     * none.
     */
    apply_filters( 'simple_seo_description', $description, $post_id );
  • src/frontend.php line 242
    /**
     * Filters whether search engines are asked not to index a post (the robots
     * noindex tag). The sitemap follows the stored setting, not this filter.
     */
    apply_filters( 'simple_seo_noindex', is_noindex( $post_id ), $post_id );
  • src/frontend.php line 95
    /**
     * Filters the SEO title of a post before it's used in the <title> tag and link
     * previews. Return '' to use the normal title. The site name is added after
     * it, except on the front page.
     */
    apply_filters( 'simple_seo_title', get_title( $post_id ), $post_id );
  • src/website-schema.php line 38
    /**
     * Filters the WebSite JSON-LD on the front page. Change or add values (like
     * 'alternateName'), or return an empty array to print nothing.
     */
    apply_filters( 'simple_seo_website_schema', $schema );

Generated from Simple 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.

Plugin 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 this

Not 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: