In order to retrieve a list of capabilities registered for a post type, you can use the
get_post_type_object( $post_type ) function and print out it’s capabilities like so
$book = get_post_type_object( 'books' ); print_r( $book->cap );
You can replace the
print_r function with a debugging function like this one to better read the output.
you can put this code in your
Leave a Reply