Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




_post_type_meta_capabilities [ WordPress Function ]

_post_type_meta_capabilities ( $capabilities = null )
Access:
  • private
Defined at:



Stores or returns a list of post type meta caps for map_meta_cap().

Source


<?php
function _post_type_meta_capabilities$capabilities null ) {
    static 
$meta_caps = array();
    if ( 
null === $capabilities )
        return 
$meta_caps;
    foreach ( 
$capabilities as $core => $custom ) {
        if ( 
in_array$core, array( 'read_post''delete_post''edit_post' ) ) )
            
$meta_caps$custom ] = $core;
    }
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics