Filter: um_file_upload_nonce

apply_filters( 'um_file_upload_nonce', $verify_nonce ) → {bool}

Filters file upload checking nonce.

Parameters:
Name Type Description
$verify_nonce bool

Verify nonce marker. Default true.

Since:
  • 1.3.x
Source:
Returns:

Verify nonce marker.

Type
bool
Example

Disable checking nonce on file upload.

function my_file_upload_nonce( $verify_nonce ) {
    // your code here
    $verify_nonce = false;
    return $verify_nonce;
}
add_filter( 'um_file_upload_nonce', 'my_file_upload_nonce' );