HEX
Server: Apache
System: Linux ecngx285.inmotionhosting.com 4.18.0-553.79.1.lve.el8.x86_64 #1 SMP Wed Oct 15 17:59:35 UTC 2025 x86_64
User: zeusxp5 (3862)
PHP: 8.3.28
Disabled: NONE
Upload Files
File: /home/zeusxp5/zenoxpressjobs.com/wp-content/themes/zxldfw-tcompanyllcMain/functions/dashboard.php
<?php
/**
 * Insert classes to the <body> based on diffrent conditions.
 *
 * @package WebcomAcwTheme
 */

/**
 * Custom widget for ACW support.
 */
function my_custom_dashboard_widgets() {
	global $wp_meta_boxes;
	wp_add_dashboard_widget( 'webcom-acw-help', 'Web.com ACW Support', 'custom_dashboard_help' );
}

/**
 * Content & CSS for the ACW support dashboard widget.
 */
function custom_dashboard_help() {
	?>
	<style>
	#webcom-acw-help p:before {
		color: #82878c;
		font: 400 20px/1 dashicons;
		speak: none;
		display: inline-block;
		padding: 0 10px 0 0;
		position: relative;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		text-decoration: none!important;
		vertical-align: top;
	}
	#webcom-acw-help .phone:before {
		content: "\f525";
		padding: 0 5px 0 0;
	}
	#webcom-acw-help .email:before {
		content: "\f466";
		padding: 0 9px 0 0;
	}
	</style>
	<p class="phone"> <strong>1-855-416-9637 - Option 2</strong></p>
	<p class="email"><a href="mailto:custom3support@web.com">custom3support@web.com</a></p>
	<?php
}
add_action( 'wp_dashboard_setup', 'my_custom_dashboard_widgets' );

/**
 * Remove slow loading widgets on the WordPress Dashboard
 */
function remove_dashboard_widgets() {
	remove_meta_box( 'dashboard_activity', 'dashboard', 'normal' ); // Recent Comments.
	remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' ); // Recent Comments.
	remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );  // Incoming Links.
	remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' );   // Plugins.
	remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );  // Quick Press.
	remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' );  // Recent Drafts.
	remove_meta_box( 'dashboard_primary', 'dashboard', 'side' );   // WordPress blog.
	remove_meta_box( 'dashboard_secondary', 'dashboard', 'side' );   // Other WordPress News.
}
add_action( 'wp_dashboard_setup', 'remove_dashboard_widgets' );

/**
 * Fix some styles in the WordPress Dashbaord
 */
function dashboard_custom_css() {
	echo '<style>
		.wpmudev-message.wpdv-connect, #dashboard_right_now #wp-version-message .button{
			display:none
		}

		.mce-container.mce-menubar {
			z-index: 9;
			background: #FFFFFF;
		}

		textarea.regular-text {
			width: 25em
		}
		.wpmudev-message.wpdv-connect, .update-nag {
			display:none;
		}
        
        .acf-field-object:nth-of-type(odd) {
            background: rgba(210, 226, 227, 0.7);
        }
        
	</style>';
}
add_action( 'admin_head', 'dashboard_custom_css' );

/**
 * Enqueue Editor CSS
 */
function webcom_add_editor_styles() {
	//add_editor_style( 'style.css' );
	add_editor_style( webcom_load_font_awesome() );
	add_editor_style( str_replace( ',', '%2C', webcom_load_google_fonts() ) );
}
add_action( 'admin_init', 'webcom_add_editor_styles' );