um_allow_frontend_image_uploads

Hook type

Filter

Description

Allow Fronend Image uploads

Parameters

$allow

(bool) Allow

$user_id

(int) User ID

$key

(string) Field Key

Usage

add_filter( 'um_allow_frontend_image_uploads', 'function_name', 10, 3 );

Examples

<?php
add_filter( 'um_allow_frontend_image_uploads', 'my_allow_frontend_image_uploads', 10, 3 );
function my_allow_frontend_image_uploads( $data ) {
    // your code here
return $data;
}
?>

Change Log

Since: 2.0

Source

um_allow_frontend_image_uploads is located in includes/core/class-files.php::line 902