pings_open хук-фильтр . WP 2.5.0
Filters whether the current post is open for pings.
Использование
add_filter( 'pings_open', 'filter_function_name_3147', 10, 2 ); function filter_function_name_3147( $open, $post_id ){ // filter... return $open; }
- $open(true|false)
- Whether the current post is open for pings.
- $post_id(число)
- The post ID.
Список изменений
С версии 2.5.0 | Введена. |
Где вызывается хук
pings_open
wp-includes/comment-template.php 1284
return apply_filters( 'pings_open', $open, $post_id );
Где используется хук в ядре WordPress
wp-includes/default-filters.php 269
add_filter( 'pings_open', '_close_comments_for_old_post', 10, 2 );