Created
July 28, 2016 11:21
-
-
Save barrykooij/b95a854d30727b90730b7db05dffd23f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dlm_el_all_locked( $metadata, $object_id, $meta_key, $single ) { | |
if ( isset( $meta_key ) && '_dlm_el_locked' == $meta_key ) { | |
$metadata = 'yes'; | |
} | |
return $metadata; | |
} | |
add_filter( 'get_post_metadata', 'dlm_el_all_locked', 100, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment