wp_list_pages_excludes

wp_list_pages_excludes

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('wp_list_pages_excludes') is found 1 times:

  • /wp-includes/post-template.php line 1333
    	 * @since 2.1.0
    	 *
    	 * @param string[] $exclude_array An array of page IDs to exclude.
    	 */
    	$parsed_args['exclude'] = implode( ',', apply_filters( 'wp_list_pages_excludes', $exclude_array ) );
    
    	$parsed_args['hierarchical'] = 0;
    
    	// Query pages.
    	$pages = get_pages( $parsed_args );
    
    

See this hook used in plugins: