I don’t see this as excessively heavy. Just use is_user_logged_in()
and current_user_can()
. Obviously if user isn’t logged in then you can skip checking for any roles. I am not sure, but user data is probably held in memory so there will be no extra database calls and such.
Related Posts:
- Heirarchical URLs with CPT and custom taxonomy
- Custom taxonomy page template
- Displaying taxonomies with manage_{custom-post-type}_posts_custom_column
- How do I put `tax_query` in this WP_query?
- WordPress custom post type advise
- Custom Post Type and Taxonomies, creating the corresponding template file and loop the data
- Generating a radius search on postmeta-metavalue and adding a taxonomy to query
- WordPress Custom taxonomy template
- Plugin Error on activating
- Associate custom categories to different user IDs
- Get posts associated with custom taxonomy alternate way
- Hierarchical taxonomy in permalink structure
- BCC email to subscribers
- How to create default taxonomy term for a custom post type? [duplicate]
- Can I create a taxonomy term that mirrors the name of a new custom post?
- Rewrite for custom type and custom taxonomy
- Extensive search filtering and results->PDF in the front-end
- How to pass taxonomy terms to WP_Query along with $args?
- How to create TEMPLATES for TAXONOMIES? What I have to change in this code?
- Custom Post Status & Taxonomies
- Display custom Taxonomies same as listing Categories
- redirect old post type url to new structure url
- How can I add a “fake” parent into the permalink?
- Custom post type taxonomy not sorting correctly
- WordPress custom post type
- How to have working breadcrumbs with several taxonomies associated with a custom post type
- Get list of CPT posts in *current* post’s taxonomy term
- Organizing The Custom Post Type with Taxonomies / Parent Posts
- show custom taxonomies in hierarchy
- Loop with Custom Post Type and Taxonomies
- Pagination fault in custom post type archive page [duplicate]
- Display 2nd category, only once, as sub-heading, in the loop
- Custom Post Types and Pre Populated Custom Taxonomies
- Render custom taxonomy query as single template
- Custom meta-box for all custom post types
- Custom Taxonomy Query by Taxonomny not working
- WordPress: insert a custom post type instance as an option for a custom taxonomy
- Fetch posts list from fist CPT taxonomy term and list under 2. CPT
- How to solve performance issue caused by custom post type overview with 20k+ custom taxonomy terms
- Single page archive – get coresponding taxonomy and terms
- How to assign custom post template to its custom taxonomy terms
- Excluding top level from taxonomy and post loop
- Prevent repetitive terms in get_the_term_list
- Trouble showing showing Posts related to custom post type and taxonomy.
- One custom post type with two different url structure base on taxonomy term
- How to query posts by meta keys AND under specific category?
- Displaying posts exclusively in their category (not parent)
- Loop multiple taxonomy in custom post
- Shortcode display CPT Query only showing 1 post?
- wp_query: How to retrieve current term slug in custom taxonomy?
- Get custom taxonomy name from custom post
- Custom taxonomy archive is visible to only subscibed users
- Post Editor: display categories from current post type taxonomy only?
- Custom Post Type and Custom Taxonomy not connected
- tax_query showing no results
- Add different meta box based on taxonomy
- List all posts from custom post type by taxonomy
- Permalinks when using Custom Post Type with static page for archive
- How to List CPTs Under One Tax Term
- How to change permalinks to taxonomy and post type’s posts
- Generating List of Tags from Custom Post Type
- predefined custom field on registration page
- Post data in separate divs with incrementing class using WP_Query
- Displaying taxonomy icon outside archive page
- Why won’t this rewrite rule work?
- archive-{custom_post_type}.php not getting recognized wordpress
- Paginate custom taxonomy category with wp_custom_pagination
- Archive.php is not displaying tags
- How to retrieve the permalink for a specific (custom) term?
- Values inside a custom field to determine which category posts to display
- Custom post type post taxonomies
- Custom Taxonomy List, Selection floats to top
- Custom post type – two taxonomies
- Exclude Custom Post Type from shared Custom Taxonomy
- Get custom post type where taxonomy..
- If taxonomy show class of active
- Connecting multiple post types? Or linking “News” posts with “Game” posts how?
- How to display custom post types AND regular posts separately on a shared taxonomy archive?
- Show Custom Post Type taxonomy term that matches custom field
- Querying multiple taxonomies in URL leads to wrong taxonomy archive
- Sort by Custom Post Type (Multiple Loop)
- Costum post type with costum (sub)taxonomy
- WordPress Custom Post Type and sort by Tags
- Remove Custom Taxonomy Slug only without removing Custom post type slug in permalinks
- Linking custom taxonomies and posts
- Archive templates based on taxonomies
- taxonomy term names in custom post type permalink structure
- Displaying custom post types with taxonomy
- Show taxonomies from specific CPT
- Query Posts with Custom Taxonomy from a Custom Post Type
- Get a list of categories ids
- How to show a custom taxonomy using a custom template
- custom post type and taxonomy URL
- custom post type and taxonomies in a php class
- Adding 2 CPT with multiple custom taxonomies to permalinks
- Get Registered Custom Post Type to get All Custom Taxonomies
- Exclude a custom category from a list
- How to Associate Posts with Pages
- Timetable of Custom Meta Data using Custom Post Type and Custom Taxonomy
- custom taxonomies are not showing up in get_taxonomies