acf/current_user_can_edit_post
acf/current_user_can_edit_post
Appears in: advanced-custom-fields.6.8.0
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.6.8.0apply_filters('acf/current_user_can_edit_post') is found 1 times:
- /includes/api/api-helpers.php line 2776
* However, more (core) stuff will likely break in this scenario. */ $user_can_edit = current_user_can( 'edit_post', $post_id ); return (bool) apply_filters( 'acf/current_user_can_edit_post', $user_can_edit, $post_id ); } /** * Checks if the current user can edit a given ACF context. * * Handles post, user, term, comment, woo_order, block, and option contexts returned by acf_decode_post_id().