';
?>
$item_array ) {
if( $item_array[0] == 'Dashboard' ) $menu[ $id ][ 0 ] = $wpbizplugins_uac_options[ 'dashboard_name'];
}
}
return $menu;
}
add_filter( 'add_menu_classes', 'wpbizplugins_uac_change_dashboard_name' );
function wpbizplugins_uac_change_dashboard_name_on_dashboard() {
global $wpbizplugins_uac_options;
if( ( is_admin() ) && ( $wpbizplugins_uac_options[ 'dashboard_name'] != '' ) ) {
echo '';
}
}
add_action('admin_head-index.php', 'wpbizplugins_uac_change_dashboard_name_on_dashboard');
/**
* Add your own CSS and JS to the admin section.
*
* @since 1.0.0
*
*/
function wpbizplugins_uac_load_custom_admin_css() {
global $wpbizplugins_uac_options;
// Exit if the current is above the capability threshold.
if( ( $wpbizplugins_uac_options[ 'show_for_admin' ] == true ) && ( current_user_can( 'delete_plugins' ) ) ) {
//return;
} elseif( current_user_can( $wpbizplugins_uac_options[ 'capability_threshold' ] ) ) {
return;
}
$css_general = get_option( 'wpbizplugins_uac_admin_general_css' );
if( $css_general != false ) echo $css_general;
echo '';
/*echo '';*/
}
add_action( 'admin_head', 'wpbizplugins_uac_load_custom_admin_css' );
function wpbizplugins_uac_load_custom_admin_js() {
global $wpbizplugins_uac_options;
// Exit if the current is above the capability threshold.
// Exit if the current is above the capability threshold.
if( ( $wpbizplugins_uac_options[ 'show_for_admin' ] == true ) && ( current_user_can( 'delete_plugins' ) ) ) {
//return;
} elseif( current_user_can( $wpbizplugins_uac_options[ 'capability_threshold' ] ) ) {
return;
}
if( $wpbizplugins_uac_options[ 'admin_custom_js'] != '' ) {
echo '';
}
}
add_action( 'admin_footer', 'wpbizplugins_uac_load_custom_admin_js' );
/**
*
* Functions for styling the login page.
*
*/
function wpbizplugins_uac_style_login_page() {
$css = get_option( 'wpbizplugins_uac_css_for_login' );
echo $css;
}
add_action( 'login_head', 'wpbizplugins_uac_style_login_page' );
function wpbizplugins_uac_js_for_login_page() {
$js = get_option( 'wpbizplugins_uac_js_for_login' );
echo $js;
}
add_action( 'login_footer', 'wpbizplugins_uac_js_for_login_page' );