HEX
Server: Apache/2
System: Linux ctr689471.novalocal 4.9.241-37.el7.x86_64 #1 SMP Mon Nov 2 13:55:04 UTC 2020 x86_64
User: bluecool (1005)
PHP: 7.4.30
Disabled: NONE
Upload Files
File: /home/bluecool/domains/bluecool.vn/public_html/wp-content/themes/flatsome-child/functions.php
<?php
function wporg_remove_all_dashboard_metaboxes() {
    // Remove Welcome panel
   // remove_action( 'welcome_panel', 'wp_welcome_panel' );
    // Remove the rest of the dashboard widgets
  //  remove_meta_box( 'dashboard_primary', 'dashboard', 'side' );
 //  remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );
    remove_meta_box( 'dashboard_site_health', 'dashboard', 'normal' );
   // remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' );
   // remove_meta_box( 'dashboard_activity', 'dashboard', 'normal');
}
add_action( 'wp_dashboard_setup', 'wporg_remove_all_dashboard_metaboxes' );

function mh_load_theme_style() {
	
	//disable zxcvbn.min.js in wordpress
	if ( !is_user_logged_in() ) {
	wp_dequeue_script('wc-password-strength-meter');
    wp_deregister_script('wc-password-strength-meter');
	}
	/* Add Font Awesome */
	//wp_deregister_script('font-awesome');
	//wp_deregister_style('font-awesome');
	//wp_register_style( 'font-awesome', get_stylesheet_directory_uri() . '/fonts/css/all.min.css', false, false );
	//wp_enqueue_style( 'font-awesome' );
	//wp_register_style( 'icofont', get_stylesheet_directory_uri() . '/icofont/icofont.min.css', false, false );
	//wp_enqueue_style( 'icofont' );


       wp_enqueue_script('custom-js', get_stylesheet_directory_uri() . '/custom.js', array('jquery'), false, true);	
	
}
add_action( 'wp_enqueue_scripts', 'mh_load_theme_style', 99998 );
add_action( 'flatsome_custom_single_product_1', 'fnBrandLink' );

function fnBrandLink() {
// Your code
global $post;
$thuong_hieu = get_the_terms($post,'pwb-brand');	
if ( $thuong_hieu && ! is_wp_error( $thuong_hieu ) ) {	
echo '<strong style="display: inline-block;">Nhãn hiệu :</strong> ' . do_shortcode('[pwb-brand image_size="thumbnail"]');
}
}