Skip to content

Instantly share code, notes, and snippets.

@masarugen
Last active December 25, 2015 10:49
Show Gist options
  • Save masarugen/6964779 to your computer and use it in GitHub Desktop.
Save masarugen/6964779 to your computer and use it in GitHub Desktop.
function is_my_protected_meta( $protected, $meta_key, $meta_type = null ) {
$protected = ( $protected && ( strpos( $meta_key, "_aioseop" ) !== 0 ) );
return $protected;
}
add_filter( 'is_protected_meta', 'is_my_protected_meta', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment