Visibility icon
SEO

Visibility hooks reference

Visibility 3.2.5 has 5 actions and 30 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
// Run your own code when Visibility fires an action
add_action( 'do_robotstxt', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value Visibility is about to use
add_filter( 'native_aeo_pack_schema_graph', function( $graph, $arg2, $post ) {
	// Change $graph here.
	return $graph;
}, 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

  • includes/class-frontend-schema-article.php line 162 · used in 3 places
    /**
     * Filter the JSON-LD nodes Visibility is about to print, before they are
     * wrapped in their `@context`. Same hook for every emitter, told apart by
     * `$context`: 'article' (singulars, this one), 'person' (author archives) and
     * 'identity' (Organization / WebSite). Add, drop or edit nodes; return an
     * empty array to print nothing.
     */
    apply_filters( 'native_aeo_pack_schema_graph', $graph, 'article', $post );
  • includes/class-robots-txt.php line 190 · used in 2 places
    /**
     * This filter is documented in wp-includes/functions.php (do_robots()).
     */
    apply_filters( 'robots_txt', $output, $public );
  • includes/class-robots-txt.php line 179
    /**
     * This action is documented in wp-includes/functions.php (do_robots()).
     */
    do_action( 'do_robotstxt' );
  • includes/class-frontend-canonical.php line 245
    /**
     * Filters the canonical URL of a listing: term, author, post type and date
     * archives, the blog and a front page that lists posts.
     */
    apply_filters( 'native_aeo_pack_canonical_url', $url, $object );
  • includes/class-content-access.php line 140
    /**
     * Filters whether an entry may be published on the AI surfaces (Markdown for
     * Agents, llms.txt, llms-full.txt and the descriptions derived from the
     * content).
     */
    apply_filters( 'native_aeo_pack_content_is_public', $is_public, $post );
  • includes/class-frontend-title.php line 146
    /**
     * Filters the per-post / per-term Meta title before it reaches `<title>`.
     */
    apply_filters( 'native_aeo_pack_document_title', $custom );
  • includes/class-sitemap.php line 327
    /**
     * Filter whether Visibility forces a 200 on this sitemap request.
     */
    apply_filters( 'native_aeo_pack_force_sitemap_200', true, $wp_query );
  • includes/class-settings.php line 675
    /**
     * Filters the business types offered for a local business identity. A name
     * goes in this list or in the organization one, not in both: the importer
     * tells which kind of type another plugin stores by the list its name is in.
     */
    apply_filters( 'native_aeo_pack_identity_business_types', $types );
  • includes/class-settings.php line 820
    /**
     * Filters the business types that take a cuisine and a menu.
     */
    apply_filters( 'native_aeo_pack_identity_food_types', $types );
  • includes/class-settings.php line 731
    /**
     * Filters the organization types offered for an organization identity. A name
     * goes in this list or in the business one, not in both: the importer tells
     * which kind of type another plugin stores by the list its name is in.
     */
    apply_filters( 'native_aeo_pack_identity_organization_types', $types );
  • includes/class-frontend-markdown.php line 3685
    /**
     * Filter the maximum number of entries the Markdown blog archive lists.
     */
    apply_filters( 'native_aeo_pack_markdown_blog_max_posts', 100 );
  • includes/class-frontend-meta-description.php line 155
    /**
     * Filter the meta description Visibility resolved for the current query, after
     * its whole fallback chain and clean-up. It is the single source for `<meta
     * name="description">`, og:description, the Twitter card, the Article
     * `description` node and the SERP preview, so a change here shows up in all of
     * them.
     */
    apply_filters( 'native_aeo_pack_meta_description', self::clean( $description ) );
  • includes/class-frontend-open-graph.php line 288
    /**
     * Filter the image Visibility picked for a singular, after the whole fallback
     * chain (per-post override → featured → WooCommerce gallery → first
     * inline image → settings fallback). It feeds og:image, the Twitter card,
     * the Article `image` node and the social preview alike, so a change here is
     * consistent everywhere.
     */
    apply_filters( 'native_aeo_pack_og_image', $image, $post );
  • includes/class-abilities.php line 1145
    /**
     * Fires after an ability changed the SEO values of an entry.
     */
    do_action( 'native_aeo_pack_post_seo_updated', (int) $post_id );
  • includes/class-settings.php line 1112
    /**
     * Filter the AI crawler user-agents Visibility lists as disallowed in
     * robots.txt. Sibling plugins read this to learn which crawlers are supposed
     * to be blocked without coupling to the settings storage.
     */
    apply_filters( 'native_aeo_pack_robots_ai_agents', $agents );
  • includes/class-robots-txt.php line 639
    /**
     * Filter whether this server is treated as .htaccess-capable.
     */
    apply_filters( 'native_aeo_pack_robots_htaccess_supported', $supported );
  • includes/class-frontend-schema-faq.php line 94
    /**
     * Filter the question/answer pairs extracted from the content before they
     * become a FAQPage node. Return an empty array to skip the node entirely
     * (useful when a theme uses `<details>` for something that is not a FAQ).
     */
    apply_filters( 'native_aeo_pack_schema_faq_pairs', $pairs, $post );
  • includes/class-sitemap-extra-provider.php line 69
    /**
     * Filters the additional URLs listed in the sitemap.
     */
    apply_filters( 'native_aeo_pack_sitemap_extra_url_list', $list, $page );
  • includes/class-abilities.php line 1169
    /**
     * Fires after an ability changed the SEO values of a term.
     */
    do_action( 'native_aeo_pack_term_seo_updated', (int) $term->term_id, $term->taxonomy );
  • includes/class-conflicts.php line 168
    /**
     * Filter whether Visibility yields the BreadcrumbList to WooCommerce on this
     * request. Return false to emit Visibility's own trail on store pages too, for
     * instance on a theme that prints no WooCommerce breadcrumbs.
     */
    apply_filters( 'native_aeo_pack_woo_owns_breadcrumbs', is_woocommerce() );
  • includes/class-title-template.php line 764
    /**
     * This filter is documented in wp-includes/general-template.php
     */
    apply_filters( 'single_post_title', $post->post_title, $post );
  • includes/class-frontend-markdown.php line 651 · used in 5 places
    apply_filters( 'wpml_active_languages', null, array( 'skip_missing' => 0 ) );
  • includes/class-frontend-markdown.php line 673 · used in 4 places
    apply_filters( 'wpml_current_language', null );
  • includes/class-permalinks.php line 276 · used in 4 places
    do_action( 'wpml_switch_language', $language );
  • includes/class-sitemap-languages-provider.php line 90 · used in 2 places
    apply_filters( 'wpml_default_language', null );
  • includes/class-title-template.php line 454
    apply_filters( 'document_title_separator', '-' );
  • includes/class-frontend-llms.php line 2003
    apply_filters( 'https_local_ssl_verify', false );
  • includes/class-content-access.php line 807
    apply_filters( 'the_content', $post->post_content );
  • includes/class-post-meta.php line 351
    apply_filters( 'wpml_element_trid', null, $post_id, $element );
  • includes/class-post-meta.php line 355
    apply_filters( 'wpml_get_element_translations', null, $trid, $element );
  • includes/class-text.php line 758
    apply_filters( 'wpml_home_url', $home );
  • includes/class-frontend-schema-identity.php line 75
    apply_filters( 'wpml_object_id', $page_id, 'page', true );
  • includes/class-sitemap.php line 249
    apply_filters( 'wpml_setting', 0, 'language_negotiation_type' );
  • includes/class-post-meta.php line 367
    do_action( 'wpml_sync_custom_field', $post_id, $key );

Generated from Visibility'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: