acf/acf_get_posts/results
Filters the results found in the acf_get_posts()
Использование
add_filter( 'acf/acf_get_posts/results', 'wp_kama_acf_get_posts_results_filter' );
/**
* Function for `acf/acf_get_posts/results` filter-hook.
*
* @param array $posts The results from the `get_posts()` call.
*
* @return array
*/
function wp_kama_acf_get_posts_results_filter( $posts ){
// filter...
return $posts;
}
- $posts(массив)
- The results from the
get_posts()call.
Список изменений
| С версии 6.1.7 | Введена. |
Где вызывается хук
acf/acf_get_posts/results
acf/includes/api/api-helpers.php 1229
return apply_filters( 'acf/acf_get_posts/results', $posts );