WP_REST_Global_Styles_Controller::check_update_permission( WP_Post $post ): bool

In this article

Checks if a global style can be edited.

Parameters

$postWP_Postrequired
Post object.

Return

bool Whether the post can be edited.

Source

protected function check_update_permission( $post ) {
	return current_user_can( 'edit_post', $post->ID );
}

Changelog

VersionDescription
5.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.