Skip to content

Instantly share code, notes, and snippets.

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