Beispiel #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);
 }
Beispiel #2
0
 public function __construct()
 {
     if (XmlExportEngine::$exportOptions['export_type'] == 'specific' and !in_array('users', XmlExportEngine::$post_types) or XmlExportEngine::$exportOptions['export_type'] == 'advanced' and XmlExportEngine::$exportOptions['wp_query_selector'] != 'wp_user_query') {
         self::$is_active = false;
         return;
     }
     $this->filter_sections = array('general' => array('title' => __("General", "wp_all_export_plugin"), 'fields' => array('ID' => 'ID', 'user_login' => 'User Login', 'user_email' => 'User Email', 'cf_first_name' => 'First Name', 'cf_last_name' => 'Last Name', 'user_role' => 'User Role', 'user_nicename' => 'User Nicename', 'user_url' => 'User URL', 'user_registered' => 'Registered Date (Y-m-d H:i:s)', 'user_status' => 'User Status', 'display_name' => 'Display Name', 'cf_nickname' => 'Nickname', 'cf_description' => 'Description')), 'advanced' => array('title' => __("Advanced", "wp_all_export_plugin"), 'fields' => array()));
     foreach ($this->advanced_fields as $key => $field) {
         if ($field['type'] == 'cf') {
             $this->filter_sections['advanced']['fields']['cf_' . $field['name']] = $field['name'];
         }
     }
     if (is_multisite()) {
         $this->filter_sections['network'] = array('title' => __("Network", "wp_all_export_plugin"), 'fields' => array('blog_id' => 'Blog ID'));
     }
     add_filter("wp_all_export_available_sections", array(&$this, "filter_available_sections"), 10, 1);
 }
Beispiel #3
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);
 }