Checks if a global style can be edited.
Parameters
$post
WP_Postrequired- Post object.
Source
protected function check_update_permission( $post ) {
return current_user_can( 'edit_post', $post->ID );
}
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.