acf/acf_get_posts/args filter-hookACF 6.1.7

Filters the args used in acf_get_posts() are passed to get_posts().

Usage

add_filter( 'acf/acf_get_posts/args', 'wp_kama_acf_get_posts_args_filter' );

/**
 * Function for `acf/acf_get_posts/args` filter-hook.
 * 
 * @param array $args The args passed to `get_posts()`.
 *
 * @return array
 */
function wp_kama_acf_get_posts_args_filter( $args ){
	// filter...
	return $args;
}
$args(array)
The args passed to get_posts().

Changelog

Since 6.1.7 Introduced.

Where the hook is called

acf_get_posts()
acf/acf_get_posts/args
acf/includes/api/api-helpers.php 1205
$args = apply_filters( 'acf/acf_get_posts/args', $args );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.