WordPress at a glance
filter is not described

edit_(post_type)_per_page filter-hook . WP 3.0.0

Filters the number of items per page to show for a specific 'per_page' type.

The dynamic portion of the hook name, $post_type, refers to the post type.

Some examples of filter hooks generated here include: 'edit_attachment_per_page', 'edit_post_per_page', 'edit_page_per_page', etc.


add_filter( 'edit_(post_type)_per_page', 'filter_function_name_5784' );
function filter_function_name_5784( $posts_per_page ){
	// filter...

	return $posts_per_page;
Number of posts to display per page for the given post type.
Default: 20

Список изменений

С версии 3.0.0 Введена.

Где вызывается хук

wp-admin/includes/post.php 1176
$posts_per_page = apply_filters( "edit_{$post_type}_per_page", $posts_per_page );

Где используется хук в ядре WordPress

Использование не найдено.