[wp-hackers] setting the themes per page
Braydon
ronin at braydon.com
Wed Jan 4 04:46:44 UTC 2012
There is a filter "edit_posts_per_page" to change that.
In functions.php adding something like this will set a new default, and
still have the user option available.
function my_edit_post_per_page() {
$per_page = (int) get_user_option( 'edit_post_per_page' );
if ( empty( $per_page ) ) {
$per_page = 100;
}
return $per_page;
}
add_filter( 'edit_posts_per_page', 'my_edit_post_per_page' );
-Braydon
On 01/03/2012 08:23 PM, fris wrote:
> Anyway we can hook into the themes per page in the admin to change the
> default of 24 per page?
>
> I know of themes_api_args and themes_api filters.
>
> Any hints?
>
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
> !DSPAM:4f03d435271881063054777!
>
--
Braydon Fuller
http://braydon.com/
More information about the wp-hackers
mailing list