PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Notice: ob_end_clean(): Failed to delete buffer. No buffer to delete in /home/telusvwg/public_html/da754d/index.php on line 8
$#$#$#

Dir : /home/telusvwg/alwatnitraders.com/wp-content/themes/woodmart/inc/integrations/
Server: Linux premium279.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
IP: 66.29.132.192
Choose File :

Url:
Dir : //home/telusvwg/alwatnitraders.com/wp-content/themes/woodmart/inc/integrations/wcmp.php

<?php
/**
 * WC Marketplace integration.
 *
 * @package woodmart
 */

if ( ! function_exists( 'woodmart_wcmp_dequeue_bootstrap_styles' ) ) {
	/**
	 * Dequeues Bootstrap styles on WC Marketplace vendor dashboard to prevent conflicts.
	 *
	 * @return void
	 */
	function woodmart_wcmp_dequeue_bootstrap_styles() {
		if ( class_exists( 'WCMp' ) && is_vendor_dashboard() && ( is_user_wcmp_vendor( get_current_user_id() ) || is_user_wcmp_pending_vendor( get_current_user_id() ) || is_user_wcmp_rejected_vendor( get_current_user_id() ) ) ) {
			wp_dequeue_style( 'bootstrap' );
			wp_deregister_style( 'bootstrap' );
		}
	}

	add_action( 'wp_enqueue_scripts', 'woodmart_wcmp_dequeue_bootstrap_styles', 10005 );
}

if ( ! function_exists( 'woodmart_wcmp_add_custom_styles' ) ) {
	/**
	 * Adds custom CSS to hide WoodMart theme elements on vendor dashboard.
	 *
	 * @return void
	 */
	function woodmart_wcmp_add_custom_styles() {
		if ( class_exists( 'WCMp' ) && is_vendor_dashboard() && ( is_user_wcmp_vendor( get_current_user_id() ) || is_user_wcmp_pending_vendor( get_current_user_id() ) || is_user_wcmp_rejected_vendor( get_current_user_id() ) ) ) {
			$css = apply_filters( 'woodmart_wcmp_custom_css', 'body[class*="wcmp"] .cart-widget-side,body[class*="wcmp"] .mobile-nav,body[class*="wcmp"] .wd-cookies-popup,body[class*="wcmp"] .pswp,body[class*="wcmp"] .scrollToTop,body[class*="wcmp"] .wd-search-full-screen,body[class*="wcmp"] .wd-promo-popup {display: none;} body[class*="wcmp"] .amount {color: inherit;}' );

			echo '<style data-type="woodmart-wcmp-custom-css">' . $css . '</style>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
		}
	}

	add_action( 'wp_enqueue_scripts', 'woodmart_wcmp_add_custom_styles', 10010 );
}