* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
* @link https://themehybrid.com/plugins/members
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
/**
* Help sidebar for all of the help tabs.
*
* @since 1.0.0
* @access public
* @return string
*/
function members_get_help_sidebar_text() {
// Get docs and help links.
$docs_link = sprintf( '
%s', esc_html__( 'Documentation', 'members' ) );
$help_link = sprintf( '%s', esc_html__( 'Support Forums', 'members' ) );
// Return the text.
return sprintf(
'%s
',
esc_html__( 'For more information:', 'members' ),
$docs_link,
$help_link
);
}
/**
* Edit role overview help tab args.
*
* @since 1.0.0
* @access public
* @return array
*/
function members_get_edit_role_help_overview_args() {
return array(
'id' => 'overview',
'title' => esc_html__( 'Overview', 'members' ),
'callback' => 'members_edit_role_help_overview_cb'
);
}
/**
* Edit role name help tab args.
*
* @since 1.0.0
* @access public
* @return array
*/
function members_get_edit_role_help_role_name_args() {
return array(
'id' => 'role-name',
'title' => esc_html__( 'Role Name', 'members' ),
'callback' => 'members_edit_role_help_role_name_cb'
);
}
/**
* Edit role edit caps help tab args.
*
* @since 1.0.0
* @access public
* @return array
*/
function members_get_edit_role_help_edit_caps_args() {
return array(
'id' => 'edit-capabilities',
'title' => esc_html__( 'Edit Capabilities', 'members' ),
'callback' => 'members_edit_role_help_edit_caps_cb'
);
}
/**
* Edit role custom cap help tab args.
*
* @since 1.0.0
* @access public
* @return array
*/
function members_get_edit_role_help_custom_cap_args() {
return array(
'id' => 'custom-capability',
'title' => esc_html__( 'Custom Capability', 'members' ),
'callback' => 'members_edit_role_help_custom_cap_cb'
);
}
/**
* Edit role overview help tab callback function.
*
* @since 1.0.0
* @access public
* @return void
*/
function members_edit_role_help_overview_cb() { ?>
' . esc_html__( 'Roles and Capabilities', 'members' ) . ''
); ?>
- Grant allows you to grant the role a capability.', 'members' ); ?>
- Deny allows you to explicitly deny the role a capability.', 'members' ); ?>