Skip to content

Instantly share code, notes, and snippets.

@cobaltapps
Created August 30, 2018 23:38
Show Gist options
  • Save cobaltapps/3f929cc12d38dd59824c7e33c717a729 to your computer and use it in GitHub Desktop.
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.
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