Quantcast
Channel: Topic Tag: plugin | WordPress.org
Viewing all articles
Browse latest Browse all 26892

coderdj412 on "Filter: CPT and map_meta_cap"

$
0
0

Ok, cool. So if I set the boolean to true in the cpt function, all of the caps in the map_meta_cap inherit the caps of the post object?

For example:

If the default map_meta_cap function does this:

switch ($cap){
case 'edit_posts'

If boolean is true, then the above is true for my cpt? If I create a cb func that changes who can edit posts like:

if(is_admin){
$caps = 'edit_posts';
return $caps;
}

If that the format to change how the caps are rendered?


Viewing all articles
Browse latest Browse all 26892

Trending Articles