Home / Admin / Disable SEO Preview feature
Duplicate Snippet

Embed Snippet on Your Site

Disable SEO Preview feature

This code snippet can be used to remove the "SEO Preview" feature in All in One SEO

200+
Code Preview
php
<?php
add_action( 'init', function() {
	if ( ! function_exists( 'aioseo' ) ) {
		return;
	}
    remove_action( 'wp', [ aioseo()->standalone->seoPreview, 'init' ] );
}, 100);

Comments

Add a Comment