Function: user_can_edit_post_date

user_can_edit_post_date( integer $user_id, integer $post_id, integer $blog_id )

Whether user can delete a post.

Parameters

Name Type(s) Default Value Description
$user_id integer
$post_id integer
$blog_id integer 1

Not Used

Returns

boolean

returns true if $user_id can edit $post_id's date

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.