media_upload_default_tab, type

media_upload_default_tab, type

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: 7.0.3

apply_filters('media_upload_default_tab, type') is found 1 times:

  • /wp-admin/media-upload.php line 78
    	 * @since 2.5.0
    	 *
    	 * @param string $tab The default media popup tab. Default 'type' (From Computer).
    	 */
    	$tab = apply_filters( 'media_upload_default_tab', 'type' );
    }
    
    $body_id = 'media-upload';
    
    // Let the action code decide how to handle the request.
    if ( 'type' === $tab || 'type_url' === $tab || ! array_key_exists( $tab, media_upload_tabs() ) ) {