bp_admin_setting_callback_enable_send_invite_member_type( $args )
Allow member type to send invites setting field
Description
Parameters
- $args
-
(Required) array
Source
File: bp-core/admin/bp-core-admin-settings.php
function bp_admin_setting_callback_enable_send_invite_member_type( $args ) { $option_name = $args['name']; if ( true === $args['description'] ) { ?> <p class="description"><?php _e( 'Only allow the selected profile types to send invites.', 'buddyboss' ); ?></p> <?php } ?> <input name="<?php echo esc_attr( 'bp-enable-send-invite-member-type-'.$option_name ); ?>" id="<?php echo esc_attr( $option_name ); ?>" type="checkbox" value="1" <?php checked( bp_enable_send_invite_member_type( 'bp-enable-send-invite-member-type-'.$option_name, false ) ); ?>/> <label for="<?php echo esc_attr( $option_name ); ?>"><?php esc_html_e( $args['member_type_name'], '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.