bp_admin_setting_callback_group_type_creation()
‘Enable group types’ field markup.
Description
Source
File: bp-core/admin/bp-core-admin-settings.php
function bp_admin_setting_callback_group_type_creation() {
?>
<input id="bp-disable-group-type-creation" name="bp-disable-group-type-creation" type="checkbox" value="1" <?php checked( bp_disable_group_type_creation() ); ?> />
<?php
if ( true === bp_disable_group_type_creation() ) {
printf(
'<label for="bp-disable-group-type-creation">%s</label>',
sprintf(
__( 'Enable <a href="%s">group types</a> to better organize groups', 'buddyboss' ),
add_query_arg([
'post_type' => bp_get_group_type_post_type(),
], admin_url( 'edit.php' ) )
)
);
} else {
?>
<label for="bp-disable-group-type-creation"><?php _e( 'Enable group types to better organize groups', '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.