Esempio n. 1
0
 public function __construct()
 {
     add_action('wp_ajax_woocommerce_json_search_vendors', array(&$this, 'woocommerce_json_search_vendors'));
     add_action('wp_ajax_activate_pending_vendor', array(&$this, 'activate_pending_vendor'));
     add_action('wp_ajax_reject_pending_vendor', array(&$this, 'reject_pending_vendor'));
     add_action('wp_ajax_send_report_abuse', array(&$this, 'send_report_abuse'));
     add_action('wp_ajax_nopriv_send_report_abuse', array(&$this, 'send_report_abuse'));
     add_action('wp_ajax_dismiss_vendor_to_do_list', array(&$this, 'dismiss_vendor_to_do_list'));
     add_action('wp_ajax_get_more_orders', array(&$this, 'get_more_orders'));
     add_action('wp_ajax_withdrawal_more_orders', array(&$this, 'withdrawal_more_orders'));
     add_action('wp_ajax_show_more_transaction', array(&$this, 'show_more_transaction'));
     add_action('wp_ajax_nopriv_get_more_orders', array(&$this, 'get_more_orders'));
     add_action('wp_ajax_order_mark_as_shipped', array(&$this, 'order_mark_as_shipped'));
     add_action('wp_ajax_nopriv_order_mark_as_shipped', array(&$this, 'order_mark_as_shipped'));
     add_action('wp_ajax_transaction_done_button', array(&$this, 'transaction_done_button'));
     add_action('wp_ajax_wcmp_vendor_csv_download_per_order', array(&$this, 'wcmp_vendor_csv_download_per_order'));
     add_filter('ajax_query_attachments_args', array(&$this, 'show_current_user_attachments'), 10, 1);
     add_filter('wp_ajax_vendor_report_sort', array($this, 'vendor_report_sort'));
     add_filter('wp_ajax_vendor_search', array($this, 'search_vendor_data'));
     add_filter('wp_ajax_product_report_sort', array($this, 'product_report_sort'));
     add_filter('wp_ajax_product_search', array($this, 'search_product_data'));
     // woocommerce product enquiry form support
     if (WC_Dependencies_Product_Vendor::woocommerce_product_enquiry_form_active_check()) {
         add_filter('product_enquiry_send_to', array($this, 'send_enquiry_to_vendor'), 10, 2);
     }
     // Unsign vendor from product
     add_action('wp_ajax_unassign_vendor', array($this, 'unassign_vendor'));
     add_action('wp_ajax_wcmp_frontend_sale_get_row', array(&$this, 'wcmp_frontend_sale_get_row_callback'));
     add_action('wp_ajax_nopriv_wcmp_frontend_sale_get_row', array(&$this, 'wcmp_frontend_sale_get_row_callback'));
     add_action('wp_ajax_wcmp_frontend_pending_shipping_get_row', array(&$this, 'wcmp_frontend_pending_shipping_get_row_callback'));
     add_action('wp_ajax_nopriv_wcmp_frontend_pending_shipping_get_row', array(&$this, 'wcmp_frontend_pending_shipping_get_row_callback'));
     add_action('wp_ajax_wcmp_vendor_messages_operation', array($this, 'wcmp_vendor_messages_operation'));
     add_action('wp_ajax_nopriv_wcmp_vendor_messages_operation', array($this, 'wcmp_vendor_messages_operation'));
     add_action('wp_ajax_wcmp_msg_refresh_tab_data', array($this, 'wcmp_msg_refresh_tab_data'));
     add_action('wp_ajax_nopriv_wcmp_msg_refresh_tab_data', array($this, 'wcmp_msg_refresh_tab_data'));
     add_action('wp_ajax_wcmp_dismiss_dashboard_message', array($this, 'wcmp_dismiss_dashboard_message'));
     add_action('wp_ajax_nopriv_wcmp_dismiss_dashboard_message', array($this, 'wcmp_dismiss_dashboard_message'));
     // Sort vendors by category
     add_action('wp_ajax_vendor_list_by_category', array($this, 'vendor_list_by_category'));
     add_action('wp_ajax_nopriv_vendor_list_by_category', array($this, 'vendor_list_by_category'));
 }