PATH:
home
/
letacommog
/
pymreception1
/
wp-content
/
plugins
/
wc-frontend-manager-groups-staffs
/
core
<?php /** * WCFMgs plugin core * * Marketplace Dokan Support * * @author WC Lovers * @package wcfmgs/core * @version 1.1.8 */ class WCFMgs_Dokan { public $vendor_id; public function __construct() { global $WCFM; if( wcfm_is_vendor() ) { $this->vendor_id = apply_filters( 'wcfm_current_vendor_id', get_current_user_id() ); // Staffs args add_filter( 'wcfmgs_get_shop_staffs_args', array( &$this, 'dokan_wcfm_filter_staffs' ) ); // Manage Staff add_action( 'wcfm_staffs_manage', array( &$this, 'dokan_wcfm_staffs_manage' ) ); } } // WCMp Filter Staffs function dokan_wcfm_filter_staffs( $args ) { $args['meta_key'] = '_wcfm_vendor'; $args['meta_value'] = $this->vendor_id; return $args; } // WCMp Staff Manage function dokan_wcfm_staffs_manage( $staff_id ) { update_user_meta( $staff_id, '_wcfm_vendor', $this->vendor_id ); } }
[+]
..
[-] class-wcfmgs-wcmarketplace.php
[edit]
[-] class-wcfmgs-library.php
[edit]
[-] class-wcfmgs-non-ajax.php
[edit]
[+]
license
[-] class-wcfmgs-vendor-groups.php
[edit]
[-] class-wcfmgs-frontend.php
[edit]
[-] class-wcfmgs-ajax.php
[edit]
[-] class-wcfmgs-license.php
[edit]
[-] class-wcfmgs-template.php
[edit]
[-] class-wcfmgs-shop-staffs.php
[edit]
[-] class-wcfmgs-wcpvendors.php
[edit]
[-] class-wcfmgs.php
[edit]
[-] class-wcfmgs-shop-managers.php
[edit]
[-] class-wcfmgs-wcvendors.php
[edit]
[-] class-wcfmgs-dokan.php
[edit]
[-] class-wcfmgs-wcfmmarketplace.php
[edit]
[-] class-wcfmgs-capability.php
[edit]
[-] class-wcfmgs-vendor-support.php
[edit]