get_pages_query_args

get_pages_query_args

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('get_pages_query_args') is found 1 times:

  • /wp-includes/post.php line 6415
    	 *
    	 * @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 );