Unprotecting AIOSEOP’s Post Meta

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

Buy Now

You can unprotect All in One SEO’s post meta using the code snippet below –

add_filter( 'is_protected_meta', 'aioseo_unprotect_meta', 10, 3 );

function aioseo_unprotect_meta( $protected, $meta_key, $meta_type ) {
if ( isset( $meta_key ) && ( substr( $meta_key, 0, 9 ) === '_aioseop_' ) ) {
return false;
}
return $protected;
}

If you do not know what exactly this is for, then you should probably not be using this code.

  • Was this helpful ?
  • YesNo