ElevenRank

Docs

Developer hooks

Public actions and filters. Anything not listed here is internal and may change.

Actions

HookArgumentsFires
elevenrank_register_modulesModule_Registry $registryBefore modules boot. Add-ons register their own Module implementations here.
elevenrank_loadednoneAfter ElevenRank and every active module have booted.
elevenrank_deactivatebool $network_wideWhen the plugin is deactivated.
elevenrank_sitemap_cache_clearedstring[] $namesAfter sitemap cache entries were dropped.

Filters

HookArgumentsPurpose
elevenrank_settings_schemaarray $definitionsAdd or change settings groups. Values are validated against the schema everywhere.
elevenrank_variablesarray $callbacksAdd or replace template variables.
elevenrank_detected_seo_pluginsarray $foundOther SEO plugins that are active; a non-empty list pauses front-end output.
elevenrank_sitemap_entryarray $entry, string $name, objectChange or drop one sitemap entry.
elevenrank_sitemap_alternatesarray $alternates, WP_Post $postLanguage alternates for a post.
elevenrank_sitemap_sourcesEntry_Source[] $sourcesAdd or replace the sources that provide sitemap files.
elevenrank_sitemap_post_types / _taxonomiesstring[] $slugsPost types and taxonomies that get a sitemap.
elevenrank_sitemap_cache_ttlint $seconds, string $nameCache lifetime of a sitemap file.
elevenrank_robots_file_pathsstring[] $pathsWhere a physical robots.txt is looked for.
elevenrank_breadcrumb_itemsarray $items, Context $contextThe trail before it is rendered.
elevenrank_redirect_destinationstring $destination, array $ruleThe address a redirect sends visitors to. Return an empty string to skip.
elevenrank_redirect_allowed_hostsstring[] $hostsHosts redirects may lead to besides this site.
elevenrank_schema_grapharray $document, Context $contextThe whole JSON-LD document before it is printed.
elevenrank_schema_{type}array|null $node, Context $contextOne node of the graph; return null to leave it out.
elevenrank_schema_enabled_for_postbool $enabled, int $post_idWhether a post gets structured data at all.
elevenrank_editor_configarray $configConfiguration read by the editor scripts.
elevenrank_admin_configarray $configAdd screens and settings to the ElevenRank admin app.
elevenrank_is_pro_activebool $activeWhether a Pro add-on is active.

This page is a summary; the plugin repository holds the full reference.