Forked from cobaltapps/custom_extender_pro_not_labeled.php
Created
March 7, 2019 01:55
-
-
Save DalavanCloud/f0a51274d8dd32c6f3e80ba749272684 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 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 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