mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 06:33:50 +09:00
- added WP Users restrictions by UM Roles settings;
- added new extensions to the list;
This commit is contained in:
@@ -5,22 +5,22 @@
|
||||
<?php $role = $object['data'];
|
||||
|
||||
UM()->admin_forms( array(
|
||||
'class' => 'um-role-general um-half-column',
|
||||
'prefix_id' => 'role',
|
||||
'fields' => array(
|
||||
'class' => 'um-role-general um-half-column',
|
||||
'prefix_id' => 'role',
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => '_um_can_edit_profile',
|
||||
'type' => 'checkbox',
|
||||
'label' => __( 'Can edit their profile?', 'ultimate-member' ),
|
||||
'tooltip' => __( 'Can this role edit his own profile?', 'ultimate-member' ),
|
||||
'value' => ! empty( $role['_um_can_edit_profile'] ) ? $role['_um_can_edit_profile'] : 0,
|
||||
'id' => '_um_can_edit_profile',
|
||||
'type' => 'checkbox',
|
||||
'label' => __( 'Can edit their profile?', 'ultimate-member' ),
|
||||
'tooltip' => __( 'Can this role edit his own profile?', 'ultimate-member' ),
|
||||
'value' => ! empty( $role['_um_can_edit_profile'] ) ? $role['_um_can_edit_profile'] : 0,
|
||||
),
|
||||
array(
|
||||
'id' => '_um_can_delete_profile',
|
||||
'type' => 'checkbox',
|
||||
'label' => __( 'Can delete their account?', 'ultimate-member' ),
|
||||
'tooltip' => __( 'Allow this role to delete their account and end their membership on your site', 'ultimate-member' ),
|
||||
'value' => ! empty( $role['_um_can_delete_profile'] ) ? $role['_um_can_delete_profile'] : 0,
|
||||
'id' => '_um_can_delete_profile',
|
||||
'type' => 'checkbox',
|
||||
'label' => __( 'Can delete their account?', 'ultimate-member' ),
|
||||
'tooltip' => __( 'Allow this role to delete their account and end their membership on your site', 'ultimate-member' ),
|
||||
'value' => ! empty( $role['_um_can_delete_profile'] ) ? $role['_um_can_delete_profile'] : 0,
|
||||
)
|
||||
)
|
||||
) )->render_form(); ?>
|
||||
|
||||
Reference in New Issue
Block a user