Summery Summery
Retrieves the global WP_Roles instance and instantiates it if necessary.
Syntax Syntax
Return Return
(WP_Roles) WP_Roles global instance if not already instantiated.
Source Source
File: wp-includes/capabilities.php
if ( ! $post ) { return false; } $author = get_userdata( $post->post_author ); if ( ! $author ) { return false;
Advertisement
Changelog Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |