mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
71a9b3da11
- added priority to the User Roles;
27 lines
1.1 KiB
PHP
27 lines
1.1 KiB
PHP
<?php
|
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
|
|
$role = $object['data']; ?>
|
|
|
|
<div class="um-admin-metabox">
|
|
<?php UM()->admin_forms( array(
|
|
'class' => 'um-role-publish um-top-label',
|
|
'prefix_id' => 'role',
|
|
'fields' => array(
|
|
array(
|
|
'id' => '_um_priority',
|
|
'type' => 'text',
|
|
'label' => __( 'Role Priority', 'ultimate-member' ),
|
|
'tooltip' => __( 'The higher the number, the higher the priority', 'ultimate-member' ),
|
|
'value' => ! empty( $role['_um_priority'] ) ? $role['_um_priority'] : '',
|
|
),
|
|
)
|
|
) )->render_form(); ?>
|
|
</div>
|
|
<div class="submitbox" id="submitpost">
|
|
<div id="major-publishing-actions">
|
|
<input type="submit" value="<?php echo ! empty( $_GET['id'] ) ? __( 'Update Role', 'ultimate-member' ) : __( 'Create Role', 'ultimate-member' ) ?>" class="button-primary" id="create_role" name="create_role">
|
|
<input type="button" class="cancel_popup button" value="<?php _e( 'Cancel', 'ultimate-member' ) ?>" onclick="window.location = '<?php echo add_query_arg( array( 'page' => 'um_roles' ), admin_url( 'admin.php' ) ) ?>';" />
|
|
<div class="clear"></div>
|
|
</div>
|
|
</div>
|