get_edit_post_link хук-фильтр . WP 2.3.0
Filters the post edit link.
Использование
add_filter( 'get_edit_post_link', 'filter_function_name_6243', 10, 3 ); function filter_function_name_6243( $link, $post_id, $context ){ // filter... return $link; }
- $link(строка)
- The edit link.
- $post_id(число)
- Post ID.
- $context(строка)
- The link context. If set to 'display' then ampersands are encoded.
Список изменений
С версии 2.3.0 | Введена. |
Где вызывается хук
get_edit_post_link
wp-includes/link-template.php 1405
return apply_filters( 'get_edit_post_link', $link, $post->ID, $context );
Где используется хук в ядре WordPress
wp-includes/link-template.php 1932
add_filter( 'get_edit_post_link', '__return_empty_string' );