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

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

Change Log

Since: 2.0

Source

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