This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* information used to create the needed functions found here https://webdevstudios.com/2015/10/06/buddypress-adding-custom-notifications/ | |
* | |
* hooks a code within functions modified to my needs to work with rtmedia | |
*/ | |
/* --- Custom Notifications --- */ | |
// this is to add a fake component to BuddyPress. A registered component is needed to add notifications | |
function custom_filter_notifications_get_registered_components( $component_names = array() ) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// number of posts to display | |
$count = 20; | |
// post type podcasts | |
$podcasts = get_posts( | |
array( | |
'fields' => 'ids', | |
'post_type' => array( 'podcast' ), | |
'post_status' => array( 'publish' ), | |
'posts_per_page' => $count, |