do_autoload ) { require dirname( __FILE__ ) . '/classes/class-bp-xprofile-component.php'; } /** * Set up the bp-xprofile component. * * @since 1.6.0 */ function bp_setup_xprofile() { $bp = buddypress(); if ( ! isset( $bp->profile->id ) ) { $bp->profile = new BP_XProfile_Component(); } } add_action( 'bp_setup_components', 'bp_setup_xprofile', 2 );