[wp-hackers] Filter suggestion.

Frank wordpress at ambertation.de
Tue Jul 4 11:33:22 GMT 2006


Would it be possible to add a filter to the get_pages function?

Something like this:

function &get_pages($args = '') {
...
	$pages = apply_filters('return_page_list', $pages); 	
	return $pages;
}


I want to implement a view restriction plugin, that hides unaccessible 
pages from the wp_page_list call. One could utilize the same functions 
used for the 'the_posts' filter with this extension in order to hide 
restricted pages.

Thanks
Frank


More information about the wp-hackers mailing list