BP_Admin_Setting_Xprofile::bp_admin_setting_callback_member_type_enable_disable()
Enable profile types.
Description
Source
File: bp-core/admin/settings/bp-admin-setting-xprofile.php
public function bp_admin_setting_callback_member_type_enable_disable() { ?> <input id="bp-member-type-enable-disable" name="bp-member-type-enable-disable" type="checkbox" value="1" <?php checked( bp_member_type_enable_disable() ); ?> /> <?php if ( true === bp_member_type_enable_disable() ) { printf( '<label for="bp-member-type-enable-disable">%s</label>', sprintf( __( 'Enable <a href="%s">profile types</a> to give members unique profile fields and permissions', 'buddyboss' ), add_query_arg([ 'post_type' => bp_get_member_type_post_type(), ], admin_url( 'edit.php' ) ) ) ); } else { ?> <label for="bp-member-type-enable-disable"><?php _e( 'Enable profile types to give members unique profile fields and permissions', 'buddyboss' ); ?></label> <?php } }
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.