upload_mimes

upload_mimes

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('upload_mimes') is found 1 times:

  • /wp-includes/functions.php line 3653
    3649
    3650
    3651
    3652
    3653
    3654
    3655
    3656
    3657
    3658
    3659
         *
         * @param array            $t    Mime types keyed by the file extension regex corresponding to those types.
         * @param int|WP_User|null $user User ID, User object or null if not provided (indicates current user).
         */
        return apply_filters( 'upload_mimes', $t, $user );
    }
     
    /**
     * Displays "Are You Sure" message to confirm the action being taken.
     *
     * If the action has the nonce explain message, then it will be displayed

See this hook used in plugins: