Filter to Disable All in One SEO Pack

Need help with this?
Purchase All in One SEO Pack Pro to get dedicated support from us.

Buy Now

If you would like to disable All in One SEO Pack on certain parts of your WordPress site, you can do so with the aiosp_disable API filter hook.

This will disable All in One SEO Pack’s document title, meta description, meta keywords, Opengraph meta, and anything else added to the head section.

Returning false based on whatever conditions disables AIOSEOP for those conditions.

add_filter( 'aiosp_disable', 'disable_aioseop', 10, 1 );

function disable_aioseop( $disable ){
    // Add logic here to detect certain post IDs, post types, etc.
    return true;
}
[i]
[i]
Skip to toolbar