um_admin_role_metaboxes

Hook type

Filter

Description

Extend metaboxes at Add/Edit User Role

Parameters

$roles_metaboxes

(array) Metaboxes at Add/Edit UM Role

Usage

add_filter( 'um_admin_role_metaboxes', 'function_name', 10, 1 );

Examples

<?php
add_filter( 'um_admin_role_metaboxes', 'my_admin_role_metaboxes', 10, 1 );
function my_admin_role_metaboxes( $roles_metaboxes ) {
    // your code here
$roles_metaboxes[] = array(
'id'        => 'um-admin-form-your-custom',
'title'     => __( 'My Roles Metabox', 'ultimate-member' ),
'callback'  => 'my-metabox-callback',
'screen'    => 'um_role_meta',
'context'   => 'side',
'priority'  => 'default'
);

return $roles_metaboxes;
}
?>

Change Log

Since: 2.0

Source

um_admin_role_metaboxes is located in includes/admin/core/class-admin-metabox.php::line 806