WordPress at a glance
filter is not described

get_the_guid filter-hook . WP 1.5.0

Filters the Global Unique Identifier (guid) of the post.

Usage

add_filter( 'get_the_guid', 'filter_function_name_375', 10, 2 );
function filter_function_name_375( $guid, $id ){
	// filter...

	return $guid;
}
$guid(string)
Global Unique Identifier (guid) of the post.
$id(int)
The post ID.

Список изменений

С версии 1.5.0 Введена.

Где вызывается хук

get_the_guid()
get_the_guid
WP_REST_Posts_Controller::prepare_item_for_response()
get_the_guid
WP_REST_Revisions_Controller::prepare_item_for_response()
get_the_guid
wp-includes/post-template.php 232
return apply_filters( 'get_the_guid', $guid, $id );
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php 1609
'rendered' => apply_filters( 'get_the_guid', $post->guid, $post->ID ),
wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php 586
'rendered' => apply_filters( 'get_the_guid', $post->guid, $post->ID ),

Где используется хук в ядре WP

Использование не найдено.