acf/current_user_can_edit_post

acf/current_user_can_edit_post

Hook Type: filter

See hook in core

Displaying hooks found in version: advanced-custom-fields.6.3.11

apply_filters('acf/current_user_can_edit_post') is found 1 times:

  • /includes/api/api-helpers.php line 2756
    2752
    2753
    2754
    2755
    2756
    2757
    2758
    2759
    2760
    2761
    2762
         * 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 );
    }
     
    /**
     * acf_get_filesize
     *
     * This function will return a numeric value of bytes for a given filesize string