media_upload_default_type

media_upload_default_type

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('media_upload_default_type') is found 1 times:

  • /wp-admin/media-upload.php line 64
    	 *
    	 * @param string $type The default media upload type. Possible values include
    	 *                     'image', 'audio', 'video', 'file', etc. Default 'file'.
    	 */
    	$type = apply_filters( 'media_upload_default_type', 'file' );
    }
    
    // Tab: gallery, library, or type-specific.
    if ( isset( $_GET['tab'] ) ) {
    	$tab = (string) $_GET['tab'];
    } else {