the_guid хук-фильтр . WP 4.2.0
Filters the escaped Global Unique Identifier (guid) of the post.
Использование
add_filter( 'the_guid', 'filter_function_name_5461', 10, 2 ); function filter_function_name_5461( $guid, $id ){ // filter... return $guid; }
- $guid(строка)
- Escaped Global Unique Identifier (guid) of the post.
- $id(число)
- The post ID.
Список изменений
С версии 4.2.0 | Введена. |
Где вызывается хук
the_guid
wp-includes/post-template.php 203
echo apply_filters( 'the_guid', $guid, $id );
Где используется хук (в ядре WP)
wp-includes/default-filters.php 227
add_filter( 'the_guid', 'esc_url' );