403Webshell
Server IP : 38.190.208.107  /  Your IP : 216.73.217.46
Web Server : nginx/1.28.1
System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64
User : root ( 0)
PHP Version : 8.2.28
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/test20.chuangfenglink.xyz/wp-content/themes/woodmart/inc/integrations/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/test20.chuangfenglink.xyz/wp-content/themes/woodmart/inc/integrations/wcfmmp.php
<?php
/**
 * WCFM Marketplace integration.
 *
 * @package woodmart
 */

if ( ! function_exists( 'woodmart_wcfmmp_set_vendor_shop_page_link' ) ) {
	/**
	 * Sets vendor store URL as shop page link on vendor product pages.
	 *
	 * @param int $user_id Vendor user ID.
	 * @return void
	 */
	function woodmart_wcfmmp_set_vendor_shop_page_link( $user_id ) {
		add_filter(
			'woodmart_shop_page_link',
			function ( $url ) use ( $user_id ) {
				if ( function_exists( 'wcfmmp_get_store_url' ) ) {
					$url = wcfmmp_get_store_url( $user_id );
				}

				return $url;
			}
		);
	}

	add_action( 'wcfmmp_before_store_product', 'woodmart_wcfmmp_set_vendor_shop_page_link' );
}

if ( ! function_exists( 'woodmart_wcfmmp_check_per_page_expression' ) ) {
	/**
	 * Checks if per page filter should be applied for WCFM Marketplace requests.
	 *
	 * @return bool True if per page filter should apply, false otherwise.
	 */
	function woodmart_wcfmmp_check_per_page_expression() {
		return ( ( isset( $_POST['action'] ) && 'wcfmmp_stores_list_map_markers' !== $_POST['action'] ) || ! isset( $_POST['action'] ) ); // phpcs:ignore
	}

	add_action( 'woodmart_per_page_custom_expression', 'woodmart_wcfmmp_check_per_page_expression' );
}

if ( ! function_exists( 'woodmart_wcfmmp_apply_custom_per_page' ) ) {
	/**
	 * Applies custom per page value to WCFM Marketplace store listings.
	 *
	 * @return void
	 */
	function woodmart_wcfmmp_apply_custom_per_page() {
		add_filter(
			'wcfmmp_store_ppp',
			function ( $post_per_page ) {
				if ( isset( $_REQUEST['per_page'] ) && 1 != $_REQUEST['per_page'] && ! isset( $_REQUEST['_locale'] ) && apply_filters( 'woodmart_per_page_custom_expression', true ) ) { // phpcs:ignore
					$post_per_page = $_REQUEST['per_page']; // phpcs:ignore
				}

				return $post_per_page;
			},
			50
		);
	}

	add_action( 'init', 'woodmart_wcfmmp_apply_custom_per_page' );
}

Youez - 2016 - github.com/yon3zu
LinuXploit