get_the_modified_date

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

Retrieve the date on which the post was last modified.

Parameters

  • string $d: Optional. PHP date format. Defaults to the “date_format” option

Defined filters

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

Source code

function get_the_modified_date($d = '') {

	if ( '' == $d )

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

	else

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

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

}

1839

get_the_modified_author

Definition:
function get_the_modified_author() {}

Retrieve the author who last edited the current post.

Return values

returns:The author’s display name.

Defined filters

  • the_modified_author
    apply_filters('the_modified_author', $last_user->display_name)

Source code

function get_the_modified_author() {

	global $post;

	if ( $last_id = get_post_meta($post->ID, '_edit_last', true) ) {

		$last_user = get_userdata($last_id);

		return apply_filters('the_modified_author', $last_user->display_name);

	}

}

1837

get_the_ID

Definition:
function get_the_ID() {}

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

Source code

function get_the_ID() {

	global $post;

	return $post->ID;

}

1835

get_the_guid

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

Retrieve 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.

Defined filters

  • get_the_guid
    apply_filters('get_the_guid', $post->guid)

Source code

function get_the_guid( $id = 0 ) {

	$post = &get_post($id);



	return apply_filters('get_the_guid', $post->guid);

}

1833

get_the_generator

Definition:
function get_the_generator( $type = '' ) {}

Creates 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 on an individual basis using the ‘get_the_generator_{$type}’ filter.

Parameters

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

Return values

returns:The HTML content for the generator.

Defined filters

  • get_the_generator_{$type}
    apply_filters( "get_the_generator_{$type}", $gen, $type )

Source code

function get_the_generator( $type = '' ) {

	if ( empty( $type ) ) {



		$current_filter = current_filter();

		if ( empty( $current_filter ) )

			return;



		switch ( $current_filter ) {

			case 'rss2_head' :

			case 'commentsrss2_head' :

				$type = 'rss2';

				break;

			case 'rss_head' :

			case 'opml_head' :

				$type = 'comment';

				break;

			case 'rdf_header' :

				$type = 'rdf';

				break;

			case 'atom_head' :

			case 'comments_atom_head' :

			case 'app_head' :

				$type = 'atom';

				break;

		}

	}



	switch ( $type ) {

		case 'html':

			$gen = '<meta name="generator" content="WordPress ' . get_bloginfo( 'version' ) . '">';

			break;

		case 'xhtml':

			$gen = '<meta name="generator" content="WordPress ' . get_bloginfo( 'version' ) . '" />';

			break;

		case 'atom':

			$gen = '<generator uri="http://wordpress.org/" version="' . get_bloginfo_rss( 'version' ) . '">WordPress</generator>';

			break;

		case 'rss2':

			$gen = '<generator>http://wordpress.org/?v=' . get_bloginfo_rss( 'version' ) . '</generator>';

			break;

		case 'rdf':

			$gen = '<admin:generatorAgent rdf:resource="http://wordpress.org/?v=' . get_bloginfo_rss( 'version' ) . '" />';

			break;

		case 'comment':

			$gen = '<!-- generator="WordPress/' . get_bloginfo( 'version' ) . '" -->';

			break;

		case 'export':

			$gen = '<!-- generator="WordPress/' . get_bloginfo_rss('version') . '" created="'. date('Y-m-d H:i') . '" -->';

			break;

	}

	return apply_filters( "get_the_generator_{$type}", $gen, $type );

1831