get_pages_query_args

get_pages_query_args

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('get_pages_query_args') is found 1 times:

  • /wp-includes/post.php line 6415
    6411
    6412
    6413
    6414
    6415
    6416
    6417
    6418
    6419
    6420
    6421
    *
     * @param array $query_args  Array of arguments passed to WP_Query.
     * @param array $parsed_args Array of get_pages() arguments.
     */
    $query_args = apply_filters( 'get_pages_query_args', $query_args, $parsed_args );
     
    $pages = new WP_Query();
    $pages = $pages->query( $query_args );
     
    if ( $child_of || $hierarchical ) {
        $pages = get_page_children( $child_of, $pages );