the_guid filter-hook . WP 4.2.0
Filters the escaped Global Unique Identifier (guid) of the post.
Usage
add_filter( 'the_guid', 'filter_function_name_4477', 10, 2 ); function filter_function_name_4477( $guid, $id ){ // filter... return $guid; }
- $guid(string)
- Escaped Global Unique Identifier (guid) of the post.
- $id(int)
- The post ID.
Changelog
Since 4.2.0 | Introduced. |
Where the hook is called
the_guid
wp-includes/post-template.php 203
echo apply_filters( 'the_guid', $guid, $id );
Where in WP core the hook is used WordPress
wp-includes/post-template.php 229
add_filter( 'the_guid', 'esc_url' );