Created
May 5, 2012 18:22
-
-
Save ericmann/2604547 to your computer and use it in GitHub Desktop.
Post meta wrapper
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 get_meta_bool( $post_id, $key ) { | |
var $string_value = get_post_meta( $post_id, $key, true ); | |
return (bool) $string_value | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment