[wp-hackers] setting the themes per page
fris
fris at fris.net
Wed Jan 4 05:25:55 UTC 2012
That will work for themes per page?
Cause no option is available like in plugins,posts,etc from the drop down
contextual.
-----Original Message-----
From: wp-hackers-bounces at lists.automattic.com
[mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Braydon
Sent: Tuesday, January 03, 2012 11:47 PM
To: wp-hackers at lists.automattic.com
Subject: Re: [wp-hackers] setting the themes per page
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/
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list