DadsFam SEO 2.18.1 has 19 actions and 55 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 DadsFam SEO fires an action
add_action( 'dfseo_admin_menu', function( $arg1 ) {
// Your code runs here.
}, 10, 1 );
// Change a value DadsFam SEO is about to use
add_filter( 'dfseo_indexing_google_submit', function( $value, $arg2, $arg3 ) {
// Change $value here.
return $value;
}, 10, 3 );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
-
/** * This filter is documented in includes/class-dfseo-indexing.php (submit()). */ apply_filters( 'dfseo_indexing_google_submit', 'N/A', (string) $url, (string) $type ); -
/** * Supply what AI answer engines did on the site over the last weeks. */ apply_filters( 'dfseo_ai_activity', null, array( 'days' => 28 ) ); -
/** * Extension point — DadsFam SEO Pro persists its extra fields here (e.g. FAQ * schema items). Nonce + capability already verified above. */ do_action( 'dfseo_ajax_save_meta_pro', $post_id ); -
/** * Filters the pages DadsFam SEO treats as part of a web app (log in, account, * messages…) rather than content. */ apply_filters( 'dfseo_app_pages', $out ); -
/** * Filters the page ID backing the current post type archive. */ apply_filters( 'dfseo_archive_page_id', 0 ); -
/** * Which post types get an Article node. */ apply_filters( 'dfseo_article_post_types', array( 'post' ), $post ); -
/** * Text the AI wrote for one of the Brain's fixes. */ apply_filters( 'dfseo_brain_ai_text', null, $field, $subject, $page, array( 'keyword' => $keyword, 'own' => $own, ) ); -
/** * Filter the post types the SEO Brain learns from and fixes. */ apply_filters( 'dfseo_brain_post_types', $types ); -
/** * Filters the breadcrumb trail. */ apply_filters( 'dfseo_breadcrumb_items', $items ); -
/** * Filters the taxonomy used to build a CPT's breadcrumb trail. */ apply_filters( 'dfseo_breadcrumb_taxonomy', $preferred, $post_type ); -
/** * Supply the addresses that answered "not found" lately and have no redirect * yet. */ apply_filters( 'dfseo_broken_urls', null, array( 'days' => 30, 'min_hits' => 2, ) ); -
/** * Filters the canonical URL for the current request. */ apply_filters( 'dfseo_canonical', $this->build_canonical_url() ); -
/** * Whether the featured image counts as an image on the page. */ apply_filters( 'dfseo_count_featured_image', true, $post ); -
/** * Make a permanent redirect for an address. */ do_action( 'dfseo_create_redirect', (string) $p['key'], $to, __( 'Added by the SEO Brain', 'dadsfam-seo' ) ); -
/** * Remove the redirect the SEO Brain made for an address. */ do_action( 'dfseo_delete_redirect', (string) $p['key'], $from ); -
/** * Filters the resolved meta description. */ apply_filters( 'dfseo_description', $resolved['text'], $resolved['custom'] ); -
/** * Filters the health check register. */ apply_filters( 'dfseo_health_checks', $checks, $this ); -
/** * Filters the hreflang alternates for the current page. */ apply_filters( 'dfseo_hreflang_alternates', $alternates ); -
/** * Whether search engines are told about changes to this site. */ apply_filters( 'dfseo_indexing_public_site', ! $local && 'production' === $env && '0' !== (string) get_option( 'blog_public', '1' ) ); -
/** * Filters whether a post gets a stored SEO score. */ apply_filters( 'dfseo_is_scorable', $ok, $post ); -
/** * Filters the pages the live index check leaves out of the sitemap. */ apply_filters( 'dfseo_live_check_excluded', $out ); -
/** * Extension point — DadsFam SEO Pro (and other add-ons) boot here, after * every free subsystem is instantiated and hooked. */ do_action( 'dfseo_loaded', $this ); -
/** * Extension point — DadsFam SEO Pro persists its extra meta box fields here * (e.g. FAQ schema items). Nonce + capability already verified above. */ do_action( 'dfseo_meta_box_save_pro', $post_id ); -
/** * Extension point — DadsFam SEO Pro renders its Schema and AI Tools tab * panels here when licensed. */ do_action( 'dfseo_meta_box_tabs_panels', $post, $premium ); -
/** * Filters the og:type for the current request. */ apply_filters( 'dfseo_og_type', $type ); -
/** * Filters the site's single entity node. */ apply_filters( 'dfseo_organization_schema', $schema, $type ); -
/** * Whether a page cache answers visitors before WordPress runs (a server or CDN * cache the plugin cannot see, say). DadsFam SEO Pro asks the same question. */ apply_filters( 'dfseo_page_cache_on', $on ); -
/** * A page changed by the SEO Brain (or put back by an undo), for caches and * tools that keep a copy of it. */ do_action( 'dfseo_page_changed', $id, $url ); -
/** * Fires when DadsFam SEO has changed something every page shows, so a page * cache can clear its copies. */ do_action( 'dfseo_purge_page_cache' ); -
/** * Where an address redirects to now ('' for nowhere). */ apply_filters( 'dfseo_redirect_target', '', (string) $p['key'] ); -
/** * Fires after the free SEO abilities are registered, so the PRO add-on can * register its own abilities in the same category. */ do_action( 'dfseo_register_abilities', self::CATEGORY ); -
/** * Filters the robots directives for the current request. */ apply_filters( 'dfseo_robots_directives', $directives ); -
/** * Filters the finished @graph immediately before encoding. */ apply_filters( 'dfseo_schema_graph', array_values( $nodes ), $this ); -
/** * Extension point — DadsFam SEO Pro appends its schema pieces here (FAQPage, * HowTo, VideoObject, Product, Event). */ apply_filters( 'dfseo_schema_pro_pieces', array(), $this ); -
/** * Filters the post types DadsFam SEO scores, lists and learns from. */ apply_filters( 'dfseo_scorable_post_types', $types ); -
/** * Whether Google Search Console is connected through an add-on, so the * dashboard and the SEO Brain do not ask to connect it again. */ apply_filters( 'dfseo_search_console_connected', 'gsc' === ( self::source()['id'] ?? '' ) ); -
/** * Supply search results for one page or the whole site. */ apply_filters( 'dfseo_search_metrics', null, array( 'url' => $url, 'start' => $start, 'end' => $end, ) ); -
/** * Describe the source of search results the SEO Brain measures its changes * with. Return an empty array when there is none. */ apply_filters( 'dfseo_search_metrics_source', array() ); -
/** * Supply every page's search totals for some days. */ apply_filters( 'dfseo_search_pages', null, array( 'start' => $start, 'end' => $end, ) ); -
/** * Supply the searches Google showed this site's pages for over the last four * weeks. */ apply_filters( 'dfseo_search_queries', null, array( 'days' => 28 ) ); -
/** * Extension point — DadsFam SEO Pro registers its settings tabs here. */ apply_filters( 'dfseo_settings_tabs', $tabs ); -
/** * Settings saved as multi-line text (their line breaks kept). */ apply_filters( 'dfseo_settings_textarea_keys', array( 'dfseo_robots_txt_custom', 'dfseo_geo_llms_summary' ) ); -
/** * Filters the site's own pages (contact, policies, terms): kept in Google, but * left out of DadsFam AI's topics, link ideas and related pages. */ apply_filters( 'dfseo_site_pages', $out ); -
/** * Whether the sitemap index lists sitemap-home.xml for the homepage. */ apply_filters( 'dfseo_sitemap_home', ! $own ); -
/** * Extension point — DadsFam SEO Pro appends its news sitemap entry here. */ apply_filters( 'dfseo_sitemap_index_entries', $list ); -
/** * Filters the posts included in a sitemap page. */ apply_filters( 'dfseo_sitemap_posts', $posts, $post_type, $page ); -
/** * Filters the full social tag map before output. */ apply_filters( 'dfseo_social_meta_tags', $tags ); -
/** * Filters the IDs of pages that are site machinery, not content. */ apply_filters( 'dfseo_system_page_ids', $ids ); -
/** * Filters the taxonomies treated as tags. */ apply_filters( 'dfseo_tag_taxonomies', array( 'post_tag', 'product_tag' ) ); -
/** * Filters the template variable map before substitution. */ apply_filters( 'dfseo_template_variables', $vars, $tpl, $post ); -
/** * Filters which taxonomies show the SEO panel. */ apply_filters( 'dfseo_term_meta_taxonomies', array_values( (array) $taxonomies ) ); -
/** * Filters the final page title used by <title>, og:title, twitter:title and * the schema graph. */ apply_filters( 'dfseo_title', $title ); -
/** * Whether the theme prints the post title as the page's H1 heading. */ apply_filters( 'dfseo_title_is_h1', $title_is_h1, $post ); -
do_action( 'cache_enabler_clear_page_cache_by_post', $id ); -
do_action( 'cache_enabler_clear_page_cache_by_url', $url ); -
apply_filters( 'dfseo_manage_capability', 'manage_options' ); -
apply_filters( 'dfseo_og_article_post_types', [ 'post' ], $post ); -
do_action( 'dfseo_render_sitemap_news', $this ); -
apply_filters( 'dfseo_settings_checkbox_keys', [ 'dfseo_noindex_archives', 'dfseo_noindex_author', 'dfseo_noindex_tags', 'dfseo_noindex_paged', 'dfseo_breadcrumbs_enable', 'dfseo_track_404', 'dfseo_redirect_enable', 'dfseo_auto_redirect_slug', 'dfseo_hreflang_enable', 'dfseo_redirect_attachments', 'dfseo_indexing_auto_submit', 'dfseo_sitemap_news', 'dfseo_og_enable', 'dfseo_schema_search_box', 'dfseo_ping_engines', 'dfseo_twitter_enable', '... ); -
apply_filters( 'dfseo_settings_groups', self::GROUPS ); -
apply_filters( 'dfseo_settings_tab_words', $tab_words ); -
apply_filters( 'dfseo_sitemap_content_options', array( 'dfseo_sitemap_post_types', 'dfseo_sitemap_taxonomies', 'dfseo_sitemap_exclude_ids', 'dfseo_noindex_tags', 'dfseo_sitemap_news', 'permalink_structure', 'category_base', 'tag_base', 'show_on_front', 'page_on_front', 'home', 'woocommerce_cart_page_id', 'woocommerce_checkout_page_id', 'woocommerce_myaccount_page_id', 'woocommerce_permalinks', ) ); -
apply_filters( 'do_redirect_guess_404_permalink', true ); -
do_action( 'litespeed_purge_all' ); -
do_action( 'litespeed_purge_post', $id ); -
do_action( 'litespeed_purge_url', $url ); -
apply_filters( 'strict_redirect_guess_404_permalink', false ); -
do_action( 'update_post_meta', $mid, $id, $key, $raw ); -
do_action( 'updated_post_meta', $mid, $id, $key, $raw ); -
apply_filters( 'wpml_default_language', null );
Generated from DadsFam 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: