[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * BuddyPress Blogs Widgets. 4 * 5 * @package BuddyPress 6 * @subpackage BlogsWidgets 7 * @since 1.0.0 8 */ 9 10 // Exit if accessed directly. 11 defined( 'ABSPATH' ) || exit; 12 13 /** 14 * Registers the Recent Posts Legacy Widget. 15 * 16 * @since 10.0.0 17 */ 18 function bp_blogs_register_recent_posts_widget() { 19 register_widget( 'BP_Blogs_Recent_Posts_Widget' ); 20 } 21 22 /** 23 * Register the widgets for the Blogs component. 24 */ 25 function bp_blogs_register_widgets() { 26 global $wpdb; 27 28 if ( bp_is_active( 'activity' ) && bp_is_root_blog( $wpdb->blogid ) ) { 29 add_action( 'widgets_init', 'bp_blogs_register_recent_posts_widget' ); 30 } 31 } 32 add_action( 'bp_register_widgets', 'bp_blogs_register_widgets' );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Dec 22 01:00:54 2024 | Cross-referenced by PHPXref 0.7.1 |