[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * BuddyPress XProfile Loader. 4 * 5 * An extended profile component for users. This allows site admins to create 6 * groups of fields for users to enter information about themselves. 7 * 8 * @package BuddyPress 9 * @subpackage XProfileLoader 10 * @since 1.5.0 11 */ 12 13 // Exit if accessed directly. 14 defined( 'ABSPATH' ) || exit; 15 16 /** 17 * Set up the bp-xprofile component. 18 * 19 * @since 1.6.0 20 */ 21 function bp_setup_xprofile() { 22 $bp = buddypress(); 23 24 if ( ! isset( $bp->profile->id ) ) { 25 $bp->profile = new BP_XProfile_Component(); 26 } 27 } 28 add_action( 'bp_setup_components', 'bp_setup_xprofile', 2 );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Nov 21 01:00:57 2024 | Cross-referenced by PHPXref 0.7.1 |