bp_get_activity_per_page()
Return the number of activities per page.
Description
Return
(int) The activities per page.
Source
File: bp-activity/bp-activity-template.php
function bp_get_activity_per_page() { global $activities_template; /** * Filters the activity posts per page value. * * @since BuddyPress 1.2.0 * * @param int $pag_num How many post should be displayed for pagination. */ return apply_filters( 'bp_get_activity_per_page', (int) $activities_template->pag_num ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.2.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.