BP_Media_Template::has_media()
Whether there are media items available in the loop.
Description
See also
Return
(bool) True if there are items in the loop, otherwise false.
Source
File: bp-media/classes/class-bp-media-template.php
253 254 255 256 257 258 259 | function has_media() { if ( $this ->media_count ) { return true; } return false; } |
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.