um_allowed_file_types

Hook type

Filter

Description

Extend allowed File types

Parameters

$types

(array) Files ext types

Usage

add_filter( 'um_allowed_file_types', 'function_name', 10, 1 );

Examples

Example 01

<?php
add_filter( 'um_allowed_file_types', 'my_allowed_file_types', 10, 1 );
function my_allowed_file_types( $types ) {
    // your code here
return $types;
}
?>

Example 02 - Allow to upload video files.

Example 03 - Allow to upload vCard (VCF) files.

Change Log

Since: 2.0

Source

um_allowed_file_types is located in includes/core/class-files.php::line 173