WP_REST_Global_Styles_Controller::check_update_permission( WP_Post $post ): bool

Checks if a global style can be edited.


Parameters

$post WP_Post Required
Post object.

Top ↑

Return

bool Whether the post can be edited.


Top ↑

Source

File: wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
5.9.0 Introduced.

Top ↑

User Contributed Notes

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