get_ancestors хук-фильтр . WP 1.0
This filter is documented in wp-includes/taxonomy.php
Использование
add_filter( 'get_ancestors', 'filter_function_name_8343', 10, 4 ); function filter_function_name_8343( $ancestors, $object_id, $object_type, $resource_type ){ // filter... return $ancestors; }
- $ancestors
- -
- $object_id
- -
- $object_type
- -
- $resource_type
- -
Где вызывается хук
get_ancestors
wp-includes/taxonomy.php 4672
return apply_filters( 'get_ancestors', $ancestors, $object_id, $object_type, $resource_type );
wp-includes/taxonomy.php 4704
return apply_filters( 'get_ancestors', $ancestors, $object_id, $object_type, $resource_type );