Exemplo n.º 1
0
 public function __construct()
 {
     if (XmlExportEngine::$exportOptions['export_type'] == 'specific' and !in_array('users', XmlExportEngine::$post_types) and !in_array('shop_customer', XmlExportEngine::$post_types) or XmlExportEngine::$exportOptions['export_type'] == 'advanced' and XmlExportEngine::$exportOptions['wp_query_selector'] != 'wp_user_query') {
         self::$is_active = false;
         return;
     }
     self::$is_active = true;
     if (in_array('shop_customer', XmlExportEngine::$post_types)) {
         self::$is_export_shop_customer = true;
     }
     add_filter("wp_all_export_available_data", array(&$this, "filter_available_data"), 10, 1);
     add_filter("wp_all_export_available_sections", array(&$this, "filter_available_sections"), 10, 1);
     add_filter("wp_all_export_init_fields", array(&$this, "filter_init_fields"), 10, 1);
     add_filter("wp_all_export_default_fields", array(&$this, "filter_default_fields"), 10, 1);
     add_filter("wp_all_export_other_fields", array(&$this, "filter_other_fields"), 10, 1);
 }
Exemplo n.º 2
0
 public function __construct()
 {
     $this->user_core_fields = array('rich_editing', 'comment_shortcuts', 'admin_color', 'use_ssl', 'show_admin_bar_front', 'wp_user_level', 'show_welcome_panel', 'dismissed_wp_pointers', 'session_tokens', 'wp_user-settings', 'wp_user-settings-time', 'wp_dashboard_quick_press_last_post_id', 'metaboxhidden_dashboard', 'closedpostboxes_dashboard', 'wp_nav_menu_recently_edited', 'meta-box-order_dashboard', 'closedpostboxes_product', 'metaboxhidden_product', 'manageedit-shop_ordercolumnshidden', 'aim', 'yim', 'jabber', 'wp_media_library_mode');
     if (XmlExportEngine::$exportOptions['export_type'] == 'specific' and !in_array('users', XmlExportEngine::$post_types) and !in_array('shop_customer', XmlExportEngine::$post_types) or XmlExportEngine::$exportOptions['export_type'] == 'advanced' and XmlExportEngine::$exportOptions['wp_query_selector'] != 'wp_user_query') {
         self::$is_active = false;
         return;
     }
     self::$is_active = true;
     if (in_array('shop_customer', XmlExportEngine::$post_types)) {
         self::$is_export_shop_customer = true;
     }
     add_filter("wp_all_export_available_data", array(&$this, "filter_available_data"), 10, 1);
     add_filter("wp_all_export_available_sections", array(&$this, "filter_available_sections"), 10, 1);
     add_filter("wp_all_export_init_fields", array(&$this, "filter_init_fields"), 10, 1);
     add_filter("wp_all_export_default_fields", array(&$this, "filter_default_fields"), 10, 1);
     add_filter("wp_all_export_other_fields", array(&$this, "filter_other_fields"), 10, 1);
 }