Why does this check to see if user is authorized to edit a post fail for all but super admins?
I’m trying to determine if a piece of content can be edited by a user. I would like all roles contributor and above to be authorized by a single check. Here’s my code: if( empty( $post_id ) || !current_user_can(‘edit_post’, $post_id) ) { return; } Unfortunately, the only users that don’t get the return are super … Read more