Skip to main content
Add these to your theme’s functions.php or a site-specific plugin. Several filters receive a $context object describing what is being rendered, so one filter can behave differently on a post, an archive, and the homepage.

Meta output

rankify_meta_title

The final title tag, after templates and per-post overrides.
string
required
object

rankify_meta_description

string
required
object

rankify_meta_robots

The robots directives for the current page.
array
required
object

rankify_meta_canonical

The canonical URL.
string
required

rankify_meta_image

The social share image.

rankify_meta_separator

The character %%sep%% resolves to.

rankify_meta_variable

Resolves a template variable, which is how you add your own.

rankify_filter_document_title

Whether Rankify takes over WordPress’s own title output. Return false to leave the theme’s title alone.

Output switches

Three filters turn whole blocks of output off, for when a theme or another plugin should own them.

Schema

rankify_schema_graph

The complete JSON-LD graph before output. The broadest hook in the plugin.
array
required
object

Other schema filters

rankify_metabox_schema_panel

Action. Fires inside the editor’s schema panel, for adding your own fields.

Sitemaps and breadcrumbs

AI and answer engines

rankify_llms_txt_groups

The grouped page list published at /llms.txt.
array
required

rankify_blocked_ai_crawlers

Which AI crawlers are blocked in robots.txt.
array
required

rankify_answer_source_content

The content analyzed when generating answer blocks. Use it to strip boilerplate that would otherwise be read as part of an answer.
string
required
WP_Post

AI tracking

Only enable rankify_trust_proxy_headers when your site genuinely sits behind a proxy you control. Trusting these headers otherwise lets any client claim any IP, which defeats crawler identity verification.

rankify_indexnow_submitted

Action. Fires after URLs are submitted to IndexNow.

Admin and permissions

Settings and bootstrap

rankify_settings_update:before / :after

Fire around the settings write, both receiving $settings.

rankify_pro_loaded

Fires once the Freemius SDK is initialized, before features are constructed.

Constants