wp_roles

Advertisement

Summery Summery

Retrieves the global WP_Roles instance and instantiates it if necessary.

Syntax Syntax

wp_roles()

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

Changelog
Version Description
4.3.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.