Support Log in

32. Hook Reference

Developer Guide
Prefer video? Watch the Rank Forge tutorials 9 short guides covering every feature Watch

Complete reference of every WordPress action hook that Rank Forge registers.

Actions (wp_head)

PriorityClassMethodOutput
0RANKFORGE_AB_Testingmaybe_swap_metaTitle/description override for variant B
1RANKFORGE_Meta_Generatoroutput_meta_tagsMeta tags: title, description, OG, Twitter
2RANKFORGE_Robots_Metaoutput_robots_meta directive
5RANKFORGE_Schemaoutput_schemaPrimary JSON-LD schema
6RANKFORGE_Local_Seooutput_local_schemaLocalBusiness JSON-LD
6RANKFORGE_Video_Seooutput_video_schemaVideoObject JSON-LD

Actions (save_post)

PriorityClassMethodDescription
10RANKFORGE_Schemainvalidate_ai_schema_cacheClears AI schema cache
18RANKFORGE_Video_Seoauto_detect_videosScans for video embeds
20RANKFORGE_Analyzerauto_analyzeSaves meta + runs analysis
20RANKFORGE_AB_Testingsave_meta_boxSaves A/B test fields
99RANKFORGE_Sitemapinvalidate_cacheClears sitemap cache

Actions (template_redirect)

PriorityClassMethodDescription
1RANKFORGE_Redirectshandle_redirectExecutes matching redirects
99RANKFORGE_Redirectstrack_404Logs 404 URLs

Other Hooks

HookClassDescription
transition_post_statusRANKFORGE_Auto_LinksAuto-link on first publish
transition_post_statusRANKFORGE_SitemapPing Google on publish
post_updatedRANKFORGE_RedirectsAuto-redirect on slug change
add_attachmentRANKFORGE_Image_SeoAuto alt text on upload
wp_dashboard_setupRANKFORGE_DashboardSEO Overview widget
rest_api_initRANKFORGE_Rest_ApiRegister REST routes
competitor frontend hooksRANKFORGE_Competitor_CoexistenceSuppresses common duplicate frontend metadata from Yoast description, robots, Open Graph, and Twitter presenters, plus All in One SEO, SEOPress, and Rank Math output while Rank Forge is active; Yoast title output stays available so themes that rely on it still get a tag using Rank Forge’s resolved title

Forge AI Assistant Online

Hi! I'm the Rank Forge AI assistant. Ask me anything about the plugin — setup, features, troubleshooting, or development.

Just now
Powered by Forge AI · Browse docs