_get_page_link хук-фильтр . WP 2.1.0
Filters the permalink for a non-page_on_front page.
Использование
add_filter( '_get_page_link', 'filter_function_name_4776', 10, 2 ); function filter_function_name_4776( $link, $post_id ){ // filter... return $link; }
- $link(строка)
- The page's permalink.
- $post_id(число)
- The ID of the page.
Список изменений
С версии 2.1.0 | Введена. |
Где вызывается хук
_get_page_link
wp-includes/link-template.php 399
return apply_filters( '_get_page_link', $link, $post->ID );