Rank Forge is designed to work alongside other plugins. Each snippet below disables a single feature.
Disabling Meta Output
add_action( 'init', function () {
if ( class_exists( 'RANKFORGE_Meta_Generator' ) ) {
remove_action( 'wp_head', [ RANKFORGE_Meta_Generator::instance(), 'output_meta_tags' ], 1 );
}
}, 20 );Disabling Schema Output
add_action( 'init', function () {
if ( class_exists( 'RANKFORGE_Schema' ) ) {
remove_action( 'wp_head', [ RANKFORGE_Schema::instance(), 'output_schema' ], 5 );
}
}, 20 );Disabling Robots Meta
Rank Forge does not print a robots meta tag of its own, so there is no wp_head callback to remove. It adds its directives to the single robots tag that WordPress prints, through the wp_robots filter (RANKFORGE_Robots_Meta::filter_wp_robots). On the front end it also checks at wp_head priority 0 that this filter is still attached and adds it back when it is missing, so taking the filter off on init does not switch the directives off.
Disabling Auto-Analysis on Save
Analysis on save has no setting to switch off. The Settings screen writes true into the option rankforge_settings['auto_analyze'] each time it is saved, and Rank Forge never reads it. The analysis runs from RANKFORGE_Analyzer::auto_analyze, which is hooked to save_post at priority 20, so removing that hook is how you stop it. The same callback also saves the values that the Rank Forge box submits with the post (focus keyword, SEO title and description, canonical URL, Schema Builder data and schema type, noindex and nofollow, social titles, descriptions and image, and the Video SEO fields), so with the hook removed, saving a post no longer saves those values.
add_action( 'init', function () {
if ( class_exists( 'RANKFORGE_Analyzer' ) ) {
remove_action( 'save_post', [ RANKFORGE_Analyzer::instance(), 'auto_analyze' ], 20 );
}
}, 20 );Disabling Image SEO
add_action( 'init', function () {
if ( class_exists( 'RANKFORGE_Image_Seo' ) ) {
$img = RANKFORGE_Image_Seo::instance();
remove_action( 'add_attachment', [ $img, 'auto_alt_on_upload' ] );
remove_filter( 'wp_handle_upload_prefilter', [ $img, 'clean_upload_filename' ] );
}
}, 20 );Disabling All Front-End Output
Keep analysis and admin tools, but let another plugin handle the output of the callbacks below. The robots directives are not in this list: Rank Forge adds them through the wp_robots filter, not with a wp_head callback (see Disabling Robots Meta).
add_action( 'init', function () {
if ( ! class_exists( 'RANKFORGE_Core' ) ) { return; }
if ( class_exists( 'RANKFORGE_Meta_Generator' ) )
remove_action( 'wp_head', [ RANKFORGE_Meta_Generator::instance(), 'output_meta_tags' ], 1 );
if ( class_exists( 'RANKFORGE_Schema' ) )
remove_action( 'wp_head', [ RANKFORGE_Schema::instance(), 'output_schema' ], 5 );
if ( class_exists( 'RANKFORGE_Local_Seo' ) )
remove_action( 'wp_head', [ RANKFORGE_Local_Seo::instance(), 'output_local_schema' ], 6 );
if ( class_exists( 'RANKFORGE_Video_Seo' ) )
remove_action( 'wp_head', [ RANKFORGE_Video_Seo::instance(), 'output_video_schema' ], 6 );
if ( class_exists( 'RANKFORGE_AB_Testing' ) )
remove_action( 'wp_head', [ RANKFORGE_AB_Testing::instance(), 'maybe_swap_meta' ], 0 );
if ( class_exists( 'RANKFORGE_Sitemap' ) ) {
$sitemap = RANKFORGE_Sitemap::instance();
remove_action( 'template_redirect', [ $sitemap, 'render_sitemap' ] );
}
if ( class_exists( 'RANKFORGE_Robots_Txt' ) )
remove_filter( 'robots_txt', [ RANKFORGE_Robots_Txt::instance(), 'custom_robots_txt' ], 10 );
}, 20 );—