Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A custom version of the extender_pro_has_label function that checks if pages/posts have any labels assigned to them.
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
You can’t perform that action at this time.