wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



media_upload_tabs › WordPress Function

Depuis2.5.0
Dépréciéen/a
media_upload_tabs ( Pas de paramètres )
Retourne:
  • (string[]) Default tabs.
Défini(e) dans:
Codex:

Defines the default media upload tabs.



Source

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 );
}