acf/acf_get_posts/args
acf/acf_get_posts/args
Appears in: advanced-custom-fields.6.2.7
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.6.2.7apply_filters('acf/acf_get_posts/args') is found 1 times:
- /includes/api/api-helpers.php line 117011661167116811691170117111721173117411751176
* @since 6.1.7
*
* @param
array
$args
The args passed to `get_posts()`.
*/
$args
= apply_filters(
'acf/acf_get_posts/args'
,
$args
);
// Query posts.
$posts
= get_posts(
$args
);
// Remove any potential empty results.
$posts
=
array_filter
(
$posts
);