WordPress at Your Fingertips
function is not described

media_upload_tabs() WP 2.5.0

Defines the default media upload tabs

Hooks from the function

Return

String[]. Default tabs.

Usage

media_upload_tabs();

Changelog

Since 2.5.0 Introduced.

Code of media_upload_tabs() WP 5.8.1

function media_upload_tabs() {
	$_default_tabs = array(
		'type'     => __( 'From Computer' ), // Handler action suffix => tab text.
		'type_url' => __( 'From URL' ),
		'gallery'  => __( 'Gallery' ),
		'library'  => __( 'Media Library' ),
	);

	/**
	 * Filters the available tabs in the legacy (pre-3.5.0) media popup.
	 *
	 * @since 2.5.0
	 *
	 * @param string[] $_default_tabs An array of media tabs.
	 */
	return apply_filters( 'media_upload_tabs', $_default_tabs );
}