Custom Capabilities for CPT and Problem with current_user_can()
Solved! Meta Capabilities edit_product, delete_product, ‘read_product` etc should be handled separately. Below code is from Justin Tadlocks Site add_filter( ‘map_meta_cap’, ‘fac_map_meta_cap’, 10, 4 ); function fac_map_meta_cap( $caps, $cap, $user_id, $args ) { /* If editing, deleting, or reading a product, get the post and post type object. */ if ( ‘edit_product’ == $cap || ‘delete_product’ … Read more