Used By
Used By | Description |
---|---|
wp-includes/post.php: get_post_type_capabilities() | Build an object with all post type capabilities out of a post type object |
This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Store or return a list of post type meta caps for map_meta_cap().
(string[]) (Optional) Post type meta capabilities.
Default value: null
File: wp-includes/post.php
function _post_type_meta_capabilities( $capabilities = null ) { global $post_type_meta_caps; foreach ( $capabilities as $core => $custom ) { if ( in_array( $core, array( 'read_post', 'delete_post', 'edit_post' ), true ) ) { $post_type_meta_caps[ $custom ] = $core; } } }
Version | Description |
---|---|
3.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_post_type_meta_capabilities