acf/acf_get_posts/args

acf/acf_get_posts/args

Hook Type: filter

See hook in core

Displaying hooks found in version: advanced-custom-fields.6.3.11

apply_filters('acf/acf_get_posts/args') is found 1 times:

  • /includes/api/api-helpers.php line 1191
    1187
    1188
    1189
    1190
    1191
    1192
    1193
    1194
    1195
    1196
    1197
    * @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 );