um_allowed_image_types

Hook type

Filter

Description

Extend allowed image types

Parameters

$types

(array) Image ext types

Usage

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

Examples

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

Change Log

Since: 2.0

Source

um_allowed_image_types is located in includes/core/class-files.php::line 138