acf/current_user_can_edit_post filter-hookACF 1.0

Usage

add_filter( 'acf/current_user_can_edit_post', 'wp_kama_acf_current_user_can_edit_post_filter', 10, 2 );

/**
 * Function for `acf/current_user_can_edit_post` filter-hook.
 * 
 * @param  $user_can_edit 
 * @param  $post_id       
 *
 * @return 
 */
function wp_kama_acf_current_user_can_edit_post_filter( $user_can_edit, $post_id ){
	// filter...
	return $user_can_edit;
}
$user_can_edit
-
$post_id
-

Where the hook is called

acf_current_user_can_edit_post()
acf/current_user_can_edit_post
acf/includes/api/api-helpers.php 2865
return (bool) apply_filters( 'acf/current_user_can_edit_post', $user_can_edit, $post_id );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.