bp_get_media_per_page()
Return the number of media per page.
Description
Return
(int) The media per page.
Source
File: bp-media/bp-media-template.php
function bp_get_media_per_page() {
global $media_template;
/**
* Filters the media posts per page value.
*
* @since BuddyBoss 1.0.0
*
* @param int $pag_num How many post should be displayed for pagination.
*/
return apply_filters( 'bp_get_media_per_page', (int) $media_template->pag_num );
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.0.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.