Skip to content

Instantly share code, notes, and snippets.

@brandwaffle
Created January 11, 2021 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandwaffle/c0246175bac5c7ee22de9a7eba35ee3a to your computer and use it in GitHub Desktop.
Save brandwaffle/c0246175bac5c7ee22de9a7eba35ee3a to your computer and use it in GitHub Desktop.
<?php
add_filter( 'ep_prepare_meta_allowed_protected_keys', 'ep_add_priority_meta', 10, 2 );
function ep_add_priority_meta( $keys, $post ) {
$keys[] = '_priority';
return $keys;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment