403Webshell
Server IP : 195.58.49.151  /  Your IP : 216.73.217.39
Web Server : Apache/2.4.67 (Debian) mod_fcgid/2.3.9 OpenSSL/3.0.20
System : Linux hs.hsdns.ru 6.1.0-48-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.172-1 (2026-05-15) x86_64
User : antilam ( 1007)
PHP Version : 8.4.22
Disable Function : system,passthru,popen
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/antilam/web/antilam.ru/public_html/wp-content/themes/woodmart/inc/integrations/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/antilam/web/antilam.ru/public_html/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 );
}

Youez - 2016 - github.com/yon3zu
LinuXploit