get_the_tag_list

Definition:
function get_the_tag_list( $before = '', $sep = '', $after = '' ) {}

Retrieve the tags for a post formatted as a string.

Parameters

  • string $before: Optional. Before tags.
  • string $sep: Optional. Between tags.
  • string $after: Optional. After tags.

Defined filters

  • the_tags
    apply_filters( 'the_tags', get_the_term_list( 0, 'post_tag', $before, $sep, $after )

Source code

function get_the_tag_list( $before = '', $sep = '', $after = '' ) {

	return apply_filters( 'the_tags', get_the_term_list( 0, 'post_tag', $before, $sep, $after ), $before, $sep, $after);

}

1849

get_the_tags

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

Retrieve the tags for a post.

Parameters

  • int $id: Post ID.

Defined filters

  • get_the_tags
    apply_filters( 'get_the_tags', get_the_terms( $id, 'post_tag' )

Source code

function get_the_tags( $id = 0 ) {

	return apply_filters( 'get_the_tags', get_the_terms( $id, 'post_tag' ) );

}

1847

get_the_post_thumbnail

Definition:
function get_the_post_thumbnail( $post_id = null, $size = 'post-thumbnail', $attr = '' ) {}

Retrieve Post Thumbnail.

Parameters

  • int $post_id: Optional. Post ID.
  • string $size: Optional. Image size. Defaults to ‘thumbnail’.
  • string|array $attr: Optional. Query string or array of attributes.

Defined filters

  • post_thumbnail_size
    apply_filters( 'post_thumbnail_size', $size )
  • post_thumbnail_html
    apply_filters( 'post_thumbnail_html', $html, $post_id, $post_thumbnail_id, $size, $attr )

Defined actions

  • begin_fetch_post_thumbnail_html
    do_action( 'begin_fetch_post_thumbnail_html', $post_id, $post_thumbnail_id, $size );
  • end_fetch_post_thumbnail_html
    do_action( 'end_fetch_post_thumbnail_html', $post_id, $post_thumbnail_id, $size );

Source code

function get_the_post_thumbnail( $post_id = null, $size = 'post-thumbnail', $attr = '' ) {

	$post_id = ( null === $post_id ) ? get_the_ID() : $post_id;

	$post_thumbnail_id = get_post_thumbnail_id( $post_id );

	$size = apply_filters( 'post_thumbnail_size', $size );

	if ( $post_thumbnail_id ) {

		do_action( 'begin_fetch_post_thumbnail_html', $post_id, $post_thumbnail_id, $size ); // for "Just In Time" filtering of all of wp_get_attachment_image()'s filters

		if ( in_the_loop() )

			update_post_thumbnail_cache();

		$html = wp_get_attachment_image( $post_thumbnail_id, $size, false, $attr );

		do_action( 'end_fetch_post_thumbnail_html', $post_id, $post_thumbnail_id, $size );

	} else {

		$html = '';

	}

	return apply_filters( 'post_thumbnail_html', $html, $post_id, $post_thumbnail_id, $size, $attr );

}

1845

get_the_password_form

Definition:
function get_the_password_form() {}

Retrieve protected post password form content.

Return values

returns:HTML content for password form for password protected post.

Defined filters

  • the_password_form
    apply_filters('the_password_form', $output)

Source code

function get_the_password_form() {

	global $post;

	$label = 'pwbox-'.(empty($post->ID) ? rand() : $post->ID);

	$output = '<form action="' . get_option('siteurl') . '/wp-pass.php" method="post">

	<p>' . __("This post is password protected. To view it please enter your password below:") . '</p>

	<p><label for="' . $label . '">' . __("Password:") . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . esc_attr__("Submit") . '" /></p>

	</form>

	';

	return apply_filters('the_password_form', $output);

}

1843

get_the_modified_time

Definition:
function get_the_modified_time($d = '') {}

Retrieve the time at which the post was last modified.

Parameters

  • string $d: Optional Either ‘G’, ‘U’, or php date format defaults to the value specified in the time_format option.

Defined filters

  • get_the_modified_time
    apply_filters('get_the_modified_time', $the_time, $d)

Source code

function get_the_modified_time($d = '') {

	if ( '' == $d )

		$the_time = get_post_modified_time(get_option('time_format'), null, null, true);

	else

		$the_time = get_post_modified_time($d, null, null, true);

	return apply_filters('get_the_modified_time', $the_time, $d);

}

1841