ElevenRank 1.0.0 has 4 actions and 23 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 ElevenRank fires an action
add_action( 'elevenrank_loaded', function() {
// Your code runs here.
}, 10, 1 );
// Change a value ElevenRank is about to use
add_filter( 'elevenrank_sitemap_entry', function( $entry, $name, $user ) {
// Change $entry here.
return $entry;
}, 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
-
/** * Filters one sitemap entry. Return false to leave it out. */ apply_filters( 'elevenrank_sitemap_entry', $entry, $name, $user ); -
/** * Filters the breadcrumb trail. */ apply_filters( 'elevenrank_breadcrumb_items', $items, $context ); -
/** * Filters the term chosen for a post's trail. */ apply_filters( 'elevenrank_breadcrumb_primary_term', $best, $post ); -
/** * Filters the taxonomy that gives a post its place in the trail. Return an * empty string for none. */ apply_filters( 'elevenrank_breadcrumb_taxonomy', $taxonomy, $post ); -
/** * Filters whether the block is being rendered for the editor (over REST) * rather than for a visitor. */ apply_filters( 'elevenrank_breadcrumbs_is_editor_preview', function_exists( 'wp_is_serving_rest_request' ) && wp_is_serving_rest_request() ); -
/** * Renders the breadcrumb. Added by the Breadcrumbs module. */ apply_filters( 'elevenrank_breadcrumbs_render', '', $args ); -
/** * Filters the detected conflicting SEO plugins. */ apply_filters( 'elevenrank_detected_seo_plugins', $found ); -
/** * Filters the configuration the editor scripts read from * `window.elevenrankEditor`. */ apply_filters( 'elevenrank_editor_config', $config ); -
/** * Fires once ElevenRank and all active modules are booted. */ do_action( 'elevenrank_loaded' ); -
/** * Filters the hosts that redirects may lead to. An empty list allows every * host. */ apply_filters( 'elevenrank_redirect_allowed_hosts', array() ); -
/** * Filters the address a redirect sends visitors to. Return an empty string to * skip the redirect. */ apply_filters( 'elevenrank_redirect_destination', $destination, $rule ); -
/** * Lets add-ons register their own modules before any module boots. */ do_action( 'elevenrank_register_modules', $this->registry ); -
/** * Filters the places checked for a real robots.txt file. */ apply_filters( 'elevenrank_robots_file_paths', $paths ); -
/** * Filters one node of the graph. The part after `elevenrank_schema_` is the * node's `@type` in lower case: `article`, `product`, `webpage`, * `breadcrumblist`, `organization` and so on. Return null to leave the node * out. */ apply_filters( "elevenrank_schema_{$type}", $node, $c->context ); -
/** * Filters whether a post gets structured data at all. */ apply_filters( 'elevenrank_schema_enabled_for_post', true, $post->ID ); -
/** * Filters the whole graph before it is printed. */ apply_filters( 'elevenrank_schema_graph', $document, $context ); -
/** * Filters the settings schema. Add-ons can add groups; keys are group names. */ apply_filters( 'elevenrank_settings_schema', Settings_Schema::definitions() ); -
/** * Filters the language alternates of a post in the sitemap, as hreflang => * URL. */ apply_filters( 'elevenrank_sitemap_alternates', array(), $post ); -
/** * Fires after the sitemap cache was cleared, so page caches can drop the * sitemap files too. */ do_action( 'elevenrank_sitemap_cache_cleared', $names ); -
/** * Filters how long a generated sitemap is kept, in seconds. */ apply_filters( 'elevenrank_sitemap_cache_ttl', DAY_IN_SECONDS, $name ); -
/** * Filters the images listed under a post in the sitemap. */ apply_filters( 'elevenrank_sitemap_post_images', array_values( $urls ), $post ); -
/** * Filters the post types that get a sitemap. */ apply_filters( 'elevenrank_sitemap_post_types', $types ); -
/** * Filters the sources that list URLs in the sitemaps. */ apply_filters( 'elevenrank_sitemap_sources', $this->sources ); -
/** * Filters the taxonomies that get a sitemap. */ apply_filters( 'elevenrank_sitemap_taxonomies', $taxonomies ); -
/** * Filters the template variables. Keys are variable names (lowercase letters * and underscores); values are callables receiving the Context and an optional * argument. */ apply_filters( 'elevenrank_variables', $callbacks ); -
do_action( 'elevenrank_deactivate', (bool) $network_wide ); -
apply_filters( 'robots_txt', $this->core_default(), '1' );
Generated from ElevenRank'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: