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.
// 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
-
/** * 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 ); -
/** * 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() ); -
/** * Filters the meta description, also used in link previews. Return '' for * none. */ apply_filters( 'simple_seo_description', $description, $post_id ); -
/** * The link preview image: [ 'url', 'width', 'height', 'alt' ], or null for * none. By default the post's share image, else its featured image, else the * default share image from Settings → General. */ apply_filters( 'simple_seo_link_preview_image', $image, $post_id ); -
/** * Filters the link preview tags before output. Change, add (e.g. 'og:locale') * or remove tags. Empty values are skipped. */ apply_filters( 'simple_seo_link_preview_tags', $tags, $post_id ); -
/** * 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 ); -
/** * 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 ); -
/** * 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 ); -
apply_filters( 'simple_seo_link_previews', true );
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.
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: