the_media_upload_tabs

Definition:
function the_media_upload_tabs() {}

Defined filters

  • media_upload_default_tab
    apply_filters('media_upload_default_tab', 'type')

Source code

function the_media_upload_tabs() {

	global $redir_tab;

	$tabs = media_upload_tabs();



	if ( !empty($tabs) ) {

		echo "<ul id='sidemenu'>\n";

		if ( isset($redir_tab) && array_key_exists($redir_tab, $tabs) )

			$current = $redir_tab;

		elseif ( isset($_GET['tab']) && array_key_exists($_GET['tab'], $tabs) )

			$current = $_GET['tab'];

		else

			$current = apply_filters('media_upload_default_tab', 'type');



		foreach ( $tabs as $callback => $text ) {

			$class = '';

			if ( $current == $callback )

				$class = " class='current'";

			$href = add_query_arg(array('tab'=>$callback, 's'=>false, 'paged'=>false, 'post_mime_type'=>false, 'm'=>false));

			$link = "<a href='" . esc_url($href) . "'$class>$text</a>";

			echo "\t<li id='" . esc_attr("tab-$callback") . "'>$link</li>\n";

		}

		echo "</ul>\n";

	}

}

3019

the_ID

Definition:
function the_ID() {}

Display the ID of the current item in the WordPress Loop.

Source code

function the_ID() {

	echo get_the_ID();

}

3017

the_guid

Definition:
function the_guid( $id = 0 ) {}

Display the Post Global Unique Identifier (guid).
The guid will appear to be a link, but should not be used as an link to the post. The reason you should not use it as a link, is because of moving the blog across domains.

Parameters

  • int $id: Optional. Post ID.

Source code

function the_guid( $id = 0 ) {

	echo esc_url( get_the_guid( $id ) );

}

3015

the_generator

Definition:
function the_generator( $type ) {}

Display the generator XML or Comment for RSS, ATOM, etc.
Returns the correct generator type for the requested output format. Allows for a plugin to filter generators overall the the_generator filter.

Parameters

  • string $type: The type of generator to output – (html|xhtml|atom|rss2|rdf|comment|export).

Defined filters

  • the_generator
    apply_filters('the_generator', get_the_generator($type)

Source code

function the_generator( $type ) {

	echo apply_filters('the_generator', get_the_generator($type), $type) . "\n";

}

3013

the_feed_link

Definition:
function the_feed_link( $anchor, $feed = '' ) {}

Display the permalink for the feed type.

Parameters

  • string $anchor: The link’s anchor text.
  • string $feed: Optional, defaults to default feed. Feed type.

Defined filters

  • the_feed_link
    apply_filters( 'the_feed_link', $link, $feed )

Source code

function the_feed_link( $anchor, $feed = '' ) {

	$link = '<a href="' . esc_url( get_feed_link( $feed ) ) . '">' . $anchor . '</a>';

	echo apply_filters( 'the_feed_link', $link, $feed );

}

3011