Created
August 30, 2018 23:38
-
-
Save cobaltapps/3f929cc12d38dd59824c7e33c717a729 to your computer and use it in GitHub Desktop.
A custom version of the extender_pro_has_label function that checks if pages/posts have any labels assigned to them.
This file contains 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 custom_extender_pro_not_labeled() { | |
if ( is_singular() && get_post_meta( get_the_ID(), '_extender_pro_' . extender_pro_sanitize_string( extender_pro_active_theme_name(), true ) . '_labels', true ) == '' ) | |
return true; | |
else | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment