Export Users to CSV - Version 1.1

Version Description

  • The User export now uses WordPress core export features and is found at "Tools > Export".
Download this release

Release Info

Developer webdevmattcrom
Plugin Icon 128x128 Export Users to CSV
Version 1.1
Comparing to
See all releases

Code changes from version 1.0.1 to 1.1

export-users-to-csv.php CHANGED
@@ -1,229 +1,320 @@
1
- <?php
2
- /*
3
- Plugin Name: Export Users to CSV
4
- Plugin URI: http://wordpress.org/extend/plugins/export-users-to-csv/
5
- Description: Export Users data and metadata to a csv file.
6
- Version: 1.0.1
7
- Author: Matt Cromwell
8
- Author URI: https://www.mattcromwell.com/products/export-users-to-csv
9
- License: GPL2
10
- Text Domain: export-users-to-csv
11
- */
12
- /* Copyright 2017 Matt Cromwell (http://github.com/mathetos/export-users-to-csv)
13
-
14
- This program is free software; you can redistribute it and/or modify
15
- it under the terms of the GNU General Public License, version 2, as
16
- published by the Free Software Foundation.
17
-
18
- This program is distributed in the hope that it will be useful,
19
- but WITHOUT ANY WARRANTY; without even the implied warranty of
20
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
- GNU General Public License for more details.
22
-
23
- You should have received a copy of the GNU General Public License
24
- along with this program; if not, write to the Free Software
25
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
- */
27
-
28
- load_plugin_textdomain( 'export-users-to-csv', false, basename( dirname( __FILE__ ) ) . '/languages' );
29
-
30
- /**
31
- * Main plugin class
32
- *
33
- * @since 0.1
34
- **/
35
- class PP_EU_Export_Users {
36
-
37
- /**
38
- * Class contructor
39
- *
40
- * @since 0.1
41
- **/
42
- public function __construct() {
43
- add_action( 'admin_menu', array( $this, 'add_admin_pages' ) );
44
- add_action( 'init', array( $this, 'generate_csv' ) );
45
- add_filter( 'pp_eu_exclude_data', array( $this, 'exclude_data' ) );
46
- }
47
-
48
- /**
49
- * Add administration menus
50
- *
51
- * @since 0.1
52
- **/
53
- public function add_admin_pages() {
54
- add_users_page( __( 'Export to CSV', 'export-users-to-csv' ), __( 'Export to CSV', 'export-users-to-csv' ), 'list_users', 'export-users-to-csv', array( $this, 'users_page' ) );
55
- }
56
-
57
- /**
58
- * Process content of CSV file
59
- *
60
- * @since 0.1
61
- **/
62
- public function generate_csv() {
63
- if ( isset( $_POST['_wpnonce-pp-eu-export-users-users-page_export'] ) ) {
64
- check_admin_referer( 'pp-eu-export-users-users-page_export', '_wpnonce-pp-eu-export-users-users-page_export' );
65
-
66
- $args = array(
67
- 'fields' => 'all_with_meta',
68
- 'role' => stripslashes( $_POST['role'] )
69
- );
70
-
71
- add_action( 'pre_user_query', array( $this, 'pre_user_query' ) );
72
- $users = get_users( $args );
73
- remove_action( 'pre_user_query', array( $this, 'pre_user_query' ) );
74
-
75
- if ( ! $users ) {
76
- $referer = add_query_arg( 'error', 'empty', wp_get_referer() );
77
- wp_redirect( $referer );
78
- exit;
79
- }
80
-
81
- $sitename = sanitize_key( get_bloginfo( 'name' ) );
82
- if ( ! empty( $sitename ) )
83
- $sitename .= '.';
84
- $filename = $sitename . 'users.' . date( 'Y-m-d-H-i-s' ) . '.csv';
85
-
86
- header( 'Content-Description: File Transfer' );
87
- header( 'Content-Disposition: attachment; filename=' . $filename );
88
- header( 'Content-Type: text/csv; charset=' . get_option( 'blog_charset' ), true );
89
-
90
- $exclude_data = apply_filters( 'pp_eu_exclude_data', array() );
91
-
92
- global $wpdb;
93
-
94
- $data_keys = array(
95
- 'ID', 'user_login', 'user_pass',
96
- 'user_nicename', 'user_email', 'user_url',
97
- 'user_registered', 'user_activation_key', 'user_status',
98
- 'display_name'
99
- );
100
- $meta_keys = $wpdb->get_results( "SELECT distinct(meta_key) FROM $wpdb->usermeta" );
101
- $meta_keys = wp_list_pluck( $meta_keys, 'meta_key' );
102
- $fields = array_merge( $data_keys, $meta_keys );
103
-
104
- $headers = array();
105
- foreach ( $fields as $key => $field ) {
106
- if ( in_array( $field, $exclude_data ) )
107
- unset( $fields[$key] );
108
- else
109
- $headers[] = '"' . strtolower( $field ) . '"';
110
- }
111
- echo implode( ',', $headers ) . "\n";
112
-
113
- foreach ( $users as $user ) {
114
- $data = array();
115
- foreach ( $fields as $field ) {
116
- $value = isset( $user->{$field} ) ? $user->{$field} : '';
117
- $value = is_array( $value ) ? serialize( $value ) : $value;
118
- $data[] = '"' . str_replace( '"', '""', $value ) . '"';
119
- }
120
- echo implode( ',', $data ) . "\n";
121
- }
122
-
123
- exit;
124
- }
125
- }
126
-
127
- /**
128
- * Content of the settings page
129
- *
130
- * @since 0.1
131
- **/
132
- public function users_page() {
133
- if ( ! current_user_can( 'list_users' ) )
134
- wp_die( __( 'You do not have sufficient permissions to access this page.', 'export-users-to-csv' ) );
135
- ?>
136
-
137
- <div class="wrap">
138
- <h2><?php _e( 'Export users to a CSV file', 'export-users-to-csv' ); ?></h2>
139
- <?php
140
- if ( isset( $_GET['error'] ) ) {
141
- echo '<div class="updated"><p><strong>' . __( 'No user found.', 'export-users-to-csv' ) . '</strong></p></div>';
142
- }
143
- ?>
144
- <form method="post" action="" enctype="multipart/form-data">
145
- <?php wp_nonce_field( 'pp-eu-export-users-users-page_export', '_wpnonce-pp-eu-export-users-users-page_export' ); ?>
146
- <table class="form-table">
147
- <tr valign="top">
148
- <th scope="row"><label for"pp_eu_users_role"><?php _e( 'Role', 'export-users-to-csv' ); ?></label></th>
149
- <td>
150
- <select name="role" id="pp_eu_users_role">
151
- <?php
152
- echo '<option value="">' . __( 'Every Role', 'export-users-to-csv' ) . '</option>';
153
- global $wp_roles;
154
- foreach ( $wp_roles->role_names as $role => $name ) {
155
- echo "\n\t<option value='" . esc_attr( $role ) . "'>$name</option>";
156
- }
157
- ?>
158
- </select>
159
- </td>
160
- </tr>
161
- <tr valign="top">
162
- <th scope="row"><label><?php _e( 'Date range', 'export-users-to-csv' ); ?></label></th>
163
- <td>
164
- <select name="start_date" id="pp_eu_users_start_date">
165
- <option value="0"><?php _e( 'Start Date', 'export-users-to-csv' ); ?></option>
166
- <?php $this->export_date_options(); ?>
167
- </select>
168
- <select name="end_date" id="pp_eu_users_end_date">
169
- <option value="0"><?php _e( 'End Date', 'export-users-to-csv' ); ?></option>
170
- <?php $this->export_date_options(); ?>
171
- </select>
172
- </td>
173
- </tr>
174
- </table>
175
- <p class="submit">
176
- <input type="hidden" name="_wp_http_referer" value="<?php echo $_SERVER['REQUEST_URI'] ?>" />
177
- <input type="submit" class="button-primary" value="<?php _e( 'Export', 'export-users-to-csv' ); ?>" />
178
- </p>
179
- </form>
180
- <?php
181
- }
182
-
183
- public function exclude_data() {
184
- $exclude = array( 'user_pass', 'user_activation_key' );
185
-
186
- return $exclude;
187
- }
188
-
189
- public function pre_user_query( $user_search ) {
190
- global $wpdb;
191
-
192
- $where = '';
193
-
194
- if ( ! empty( $_POST['start_date'] ) )
195
- $where .= $wpdb->prepare( " AND $wpdb->users.user_registered >= %s", date( 'Y-m-d', strtotime( $_POST['start_date'] ) ) );
196
-
197
- if ( ! empty( $_POST['end_date'] ) )
198
- $where .= $wpdb->prepare( " AND $wpdb->users.user_registered < %s", date( 'Y-m-d', strtotime( '+1 month', strtotime( $_POST['end_date'] ) ) ) );
199
-
200
- if ( ! empty( $where ) )
201
- $user_search->query_where = str_replace( 'WHERE 1=1', "WHERE 1=1$where", $user_search->query_where );
202
-
203
- return $user_search;
204
- }
205
-
206
- private function export_date_options() {
207
- global $wpdb, $wp_locale;
208
-
209
- $months = $wpdb->get_results( "
210
- SELECT DISTINCT YEAR( user_registered ) AS year, MONTH( user_registered ) AS month
211
- FROM $wpdb->users
212
- ORDER BY user_registered DESC
213
- " );
214
-
215
- $month_count = count( $months );
216
- if ( !$month_count || ( 1 == $month_count && 0 == $months[0]->month ) )
217
- return;
218
-
219
- foreach ( $months as $date ) {
220
- if ( 0 == $date->year )
221
- continue;
222
-
223
- $month = zeroise( $date->month, 2 );
224
- echo '<option value="' . $date->year . '-' . $month . '">' . $wp_locale->get_month( $month ) . ' ' . $date->year . '</option>';
225
- }
226
- }
227
- }
228
-
229
- new PP_EU_Export_Users;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Export Users to CSV
4
+ Plugin URI: http://wordpress.org/extend/plugins/export-users-to-csv/
5
+ Description: Export Users data and metadata to a csv file.
6
+ Version: 1.1
7
+ Author: Matt Cromwell
8
+ Author URI: https://www.mattcromwell.com/products/export-users-to-csv
9
+ License: GPL2
10
+ Text Domain: export-users-to-csv
11
+ */
12
+ /* Copyright 2017 Matt Cromwell (http://github.com/mathetos/export-users-to-csv)
13
+
14
+ This program is free software; you can redistribute it and/or modify
15
+ it under the terms of the GNU General Public License, version 2, as
16
+ published by the Free Software Foundation.
17
+
18
+ This program is distributed in the hope that it will be useful,
19
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
+ GNU General Public License for more details.
22
+
23
+ You should have received a copy of the GNU General Public License
24
+ along with this program; if not, write to the Free Software
25
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
+ */
27
+
28
+ load_plugin_textdomain( 'export-users-to-csv', false, basename( dirname( __FILE__ ) ) . '/languages' );
29
+
30
+ /**
31
+ * Main plugin class
32
+ *
33
+ * @since 0.1
34
+ **/
35
+ class PP_EU_Export_Users {
36
+
37
+ /**
38
+ * Class contructor
39
+ *
40
+ * @since 0.1
41
+ **/
42
+ public function __construct() {
43
+ add_filter( 'export_filters', array( $this, 'filter_export_args' ) );
44
+ add_action( 'export_wp', array( $this, 'generate_csv' ) );
45
+ add_filter( 'pp_eu_exclude_data', array( $this, 'exclude_data' ) );
46
+ add_action( 'init', array( $this, 'load_textdomain' ), 0 );
47
+ add_action('admin_notices', array($this, 'eutc_add_export_button') );
48
+ $this->setup_constants();
49
+
50
+ }
51
+
52
+ private function setup_constants() {
53
+ // Plugin version
54
+ if ( ! defined( 'EUTC_VERSION' ) ) {
55
+ define( 'EUTC_VERSION', '1.1' );
56
+ }
57
+ // Plugin Root File
58
+ if ( ! defined( 'EUTC_PLUGIN_FILE' ) ) {
59
+ define( 'EUTC_PLUGIN_FILE', __FILE__ );
60
+ }
61
+ // Plugin Folder Path
62
+ if ( ! defined( 'EUTC_PLUGIN_DIR' ) ) {
63
+ define( 'EUTC_PLUGIN_DIR', plugin_dir_path( EUTC_PLUGIN_FILE ) );
64
+ }
65
+ }
66
+
67
+ public function load_textdomain() {
68
+ $eutc_lang_dir = dirname( plugin_basename( EUTC_PLUGIN_FILE ) ) . '/languages/';
69
+ $eutc_lang_dir = apply_filters( 'eutc_languages_directory', $eutc_lang_dir );
70
+ $locale = is_admin() && function_exists( 'get_user_locale' ) ? get_user_locale() : get_locale();
71
+ $locale = apply_filters( 'plugin_locale', $locale, 'export-users-to-csv' );
72
+ unload_textdomain( 'export-users-to-csv' );
73
+ load_textdomain( 'export-users-to-csv', WP_LANG_DIR . '/export-users-to-csv/export-users-to-csv-' . $locale . '.mo' );
74
+ load_plugin_textdomain( 'export-users-to-csv', false, $eutc_lang_dir );
75
+ }
76
+
77
+ public function filter_export_args() {
78
+ ?>
79
+ <style>
80
+ .eutcsv_leave_review {
81
+ background-color: #d1ead3;
82
+ border-left-color: #68bb6c;
83
+ color: #2b5f2d;
84
+ border-style: solid;
85
+ border-width: 0 0 0 12px;
86
+ display: block;
87
+ margin-bottom: 24px;
88
+ padding: 12px 20px;
89
+ line-height: 0.7;
90
+ font-size: 110%;
91
+ }
92
+ </style>
93
+
94
+ <script type="text/javascript">
95
+ jQuery(document).ready(function($){
96
+
97
+ var form = $('#export-filters'),
98
+ review = $('.eutcsv_leave_review'),
99
+ filters = form.find('.export-filters');
100
+ filters.hide();
101
+ review.hide();
102
+ $( 'input[value="Download Export File"]' ).on( "click", function() {
103
+ $(review).delay(2000).slideDown(500);
104
+ });
105
+
106
+ form.find('input:radio').off('change').change(function() {
107
+ filters.slideUp('fast');
108
+ switch ( $(this).val() ) {
109
+ case 'posts': $('#post-filters').slideDown(); break;
110
+ case 'pages': $('#page-filters').slideDown(); break;
111
+ case 'users': $('#users-filters').slideDown(); break;
112
+ }
113
+ });
114
+ });
115
+ </script>
116
+ <fieldset>
117
+ <p>
118
+ <label>
119
+ <input type="radio" name="content" value="users"><?php echo __('Users', 'export-users-to-csv'); ?>
120
+ </label>
121
+ </p>
122
+ <ul id="users-filters" class="export-filters">
123
+ <li>
124
+ <label><span class="label-responsive"><?php echo __('Role:', 'export-users-to-csv'); ?></span>
125
+
126
+ <select name="role" id="pp_eu_users_role" class="postform">
127
+ <?php
128
+ echo '<option value="">' . __( 'Every Role', 'export-users-to-csv' ) . '</option>';
129
+ global $wp_roles;
130
+ foreach ( $wp_roles->role_names as $role => $name ) {
131
+ echo "\n\t<option value='" . esc_attr( $role ) . "'>$name</option>";
132
+ }
133
+ ?>
134
+ </select>
135
+ </label>
136
+ </li>
137
+ <li>
138
+ <label><span class="label-responsive"><?php echo __('Date Range:', 'export-users-to-csv'); ?></span>
139
+ <select name="start_date" id="pp_eu_users_start_date">
140
+ <option value="0"><?php _e( 'Start Date', 'export-users-to-csv' ); ?></option>
141
+ <?php $this->export_date_options(); ?>
142
+ </select>
143
+ <select name="end_date" id="pp_eu_users_end_date">
144
+ <option value="0"><?php _e( 'End Date', 'export-users-to-csv' ); ?></option>
145
+ <?php $this->export_date_options(); ?>
146
+ </select>
147
+ </li>
148
+ </ul>
149
+ </fieldset>
150
+ <div class="eutcsv_leave_review">
151
+ <h4><?php echo __('Success!', 'export-users-to-csv' ); ?></h4>
152
+ <p><?php echo __('Your file should be downloaded now.', 'export-users-to-csv');?></p>
153
+ <p><?php echo __('If "Export Users to CSV" has been useful for you, please take a minute to let me know by <a href="https://wordpress.org/support/plugin/export-users-to-csv/reviews/?filter=5">leaving a great rating here</a>.', 'export-users-to-csv'); ?></p>
154
+ </div>
155
+ <?php
156
+ }
157
+
158
+ /**
159
+ * Process content of CSV file
160
+ *
161
+ * @since 0.1
162
+ **/
163
+ public function generate_csv( $args ) {
164
+
165
+ if ( 'users' == $args['content'] ) {
166
+
167
+ $defaults = array( 'content' => 'all',
168
+ 'author' => false,
169
+ 'category' => false,
170
+ 'start_date' => false,
171
+ 'end_date' => false,
172
+ 'status' => false,
173
+ );
174
+
175
+ $user_args = array(
176
+ 'role' => wp_kses_post( $_GET['role'] ),
177
+ 'fields' => 'all_with_meta',
178
+ );
179
+
180
+ $merge_args = array_merge( $defaults, $user_args );
181
+
182
+ $args = wp_parse_args( $args, $merge_args );
183
+
184
+ add_action( 'pre_user_query', array( $this, 'pre_user_query' ) );
185
+ $users = get_users( $args );
186
+ remove_action( 'pre_user_query', array( $this, 'pre_user_query' ) );
187
+
188
+ if ( ! $users ) {
189
+ $referer = add_query_arg( 'error', 'empty', wp_get_referer() );
190
+ wp_redirect( $referer );
191
+ exit;
192
+ }
193
+
194
+ $sitename = sanitize_key( get_bloginfo( 'name' ) );
195
+ if ( ! empty( $sitename ) ) {
196
+ $sitename .= '.';
197
+ }
198
+ $filename = $sitename . 'users.' . date( 'Y-m-d-H-i-s' ) . '.csv';
199
+
200
+ header( 'Content-Description: File Transfer' );
201
+ header( 'Content-Disposition: attachment; filename=' . $filename );
202
+ header( 'Content-Type: text/csv; charset=' . get_option( 'blog_charset' ), true );
203
+
204
+ $exclude_data = apply_filters( 'pp_eu_exclude_data', array() );
205
+
206
+ global $wpdb;
207
+
208
+ $data_keys = array(
209
+ 'ID',
210
+ 'user_login',
211
+ 'user_pass',
212
+ 'user_nicename',
213
+ 'user_email',
214
+ 'user_url',
215
+ 'user_registered',
216
+ 'user_activation_key',
217
+ 'user_status',
218
+ 'display_name'
219
+ );
220
+ $meta_keys = $wpdb->get_results( "SELECT distinct(meta_key) FROM $wpdb->usermeta" );
221
+ $meta_keys = wp_list_pluck( $meta_keys, 'meta_key' );
222
+ $fields = array_merge( $data_keys, $meta_keys );
223
+
224
+ $headers = array();
225
+
226
+ foreach ( $fields as $key => $field ) {
227
+ if ( in_array( $field, $exclude_data ) ) {
228
+ unset( $fields[ $key ] );
229
+ } else {
230
+ $headers[] = '"' . strtolower( $field ) . '"';
231
+ }
232
+ }
233
+
234
+ echo implode( ',', $headers ) . "\n";
235
+
236
+ foreach ( $users as $user ) {
237
+ $data = array();
238
+ foreach ( $fields as $field ) {
239
+ $value = isset( $user->{$field} ) ? $user->{$field} : '';
240
+ $value = is_array( $value ) ? serialize( $value ) : $value;
241
+ $data[] = '"' . str_replace( '"', '""', $value ) . '"';
242
+ }
243
+
244
+ echo implode( ',', $data ) . "\n";
245
+ }
246
+
247
+ exit;
248
+ }
249
+ }
250
+
251
+ public function exclude_data() {
252
+ $exclude = array( 'user_pass', 'user_activation_key' );
253
+
254
+ return $exclude;
255
+ }
256
+
257
+ public function pre_user_query( $user_search ) {
258
+ global $wpdb;
259
+
260
+ $where = '';
261
+
262
+ if ( ! empty( $_POST['start_date'] ) )
263
+ $where .= $wpdb->prepare( " AND $wpdb->users.user_registered >= %s", date( 'Y-m-d', strtotime( $_POST['start_date'] ) ) );
264
+
265
+ if ( ! empty( $_POST['end_date'] ) )
266
+ $where .= $wpdb->prepare( " AND $wpdb->users.user_registered < %s", date( 'Y-m-d', strtotime( '+1 month', strtotime( $_POST['end_date'] ) ) ) );
267
+
268
+ if ( ! empty( $where ) )
269
+ $user_search->query_where = str_replace( 'WHERE 1=1', "WHERE 1=1$where", $user_search->query_where );
270
+
271
+ return $user_search;
272
+ }
273
+
274
+ private function export_date_options() {
275
+ global $wpdb, $wp_locale;
276
+
277
+ $months = $wpdb->get_results( "
278
+ SELECT DISTINCT YEAR( user_registered ) AS year, MONTH( user_registered ) AS month
279
+ FROM $wpdb->users
280
+ ORDER BY user_registered DESC
281
+ " );
282
+
283
+ $month_count = count( $months );
284
+ if ( !$month_count || ( 1 == $month_count && 0 == $months[0]->month ) )
285
+ return;
286
+
287
+ foreach ( $months as $date ) {
288
+ if ( 0 == $date->year )
289
+ continue;
290
+
291
+ $month = zeroise( $date->month, 2 );
292
+ echo '<option value="' . $date->year . '-' . $month . '">' . $wp_locale->get_month( $month ) . ' ' . $date->year . '</option>';
293
+ }
294
+ }
295
+
296
+ function eutc_add_export_button(){
297
+ $screen = get_current_screen();
298
+ if( $screen->id !='users' ){
299
+ return;
300
+ } else {
301
+ ?>
302
+ <div class="wrap export-users">
303
+ <a href="<?php echo admin_url( 'export.php' );?>" class="page-title-action">Export Users</a>
304
+ </div>
305
+
306
+ <style scoped>
307
+ .wrap.export-users {
308
+ float: none;
309
+ display: inline;
310
+ position: absolute;
311
+ left: 12em;
312
+ top: 1.45em;
313
+ }
314
+ </style>
315
+ <?php
316
+ }
317
+ }
318
+ }
319
+
320
+ new PP_EU_Export_Users;
languages/export-users-to-csv-fr_FR.mo DELETED
Binary file
languages/export-users-to-csv-fr_FR.po DELETED
@@ -1,80 +0,0 @@
1
- # Translation of the WordPress plugin Export Users to CSV 0.3 by PubPoet.
2
- # Copyright (C) 2011 PubPoet
3
- # This file is distributed under the same license as the Export Users to CSV package.
4
- # Ulrich Sossou <http://github.com/sorich87>, 2011.
5
- #
6
- msgid ""
7
- msgstr ""
8
- "Project-Id-Version: Export Users to CSV 0.3\n"
9
- "Report-Msgid-Bugs-To: http://wordpress.org/tag/export-users-to-csv\n"
10
- "POT-Creation-Date: 2011-11-27 09:07+0100\n"
11
- "PO-Revision-Date: 2011-11-27 09:24+0100\n"
12
- "Last-Translator: Ulrich Sossou <sorich87@gmail.com>\n"
13
- "Language-Team: Ulrich Sossou\n"
14
- "Language: \n"
15
- "MIME-Version: 1.0\n"
16
- "Content-Type: text/plain; charset=UTF-8\n"
17
- "Content-Transfer-Encoding: 8bit\n"
18
- "X-Poedit-Language: French\n"
19
- "X-Poedit-Country: FRANCE\n"
20
-
21
- #: export-users-to-csv.php:58
22
- msgid "Export to CSV"
23
- msgstr "Exporter en CSV"
24
-
25
- #: export-users-to-csv.php:138
26
- msgid "You do not have sufficient permissions to access this page."
27
- msgstr "Vous n'avez pas les permissions suffisantes pour accéder à cette page."
28
-
29
- #: export-users-to-csv.php:142
30
- msgid "Export users to a CSV file"
31
- msgstr "Exporter les utilisateurs vers un fichier CSV"
32
-
33
- #: export-users-to-csv.php:145
34
- msgid "No user found."
35
- msgstr "Aucun utilisateur trouvé."
36
-
37
- #: export-users-to-csv.php:152
38
- msgid "Role"
39
- msgstr "Role"
40
-
41
- #: export-users-to-csv.php:156
42
- msgid "Every Role"
43
- msgstr "Tous les Roles"
44
-
45
- #: export-users-to-csv.php:166
46
- msgid "Date range"
47
- msgstr "Date d'inscription"
48
-
49
- #: export-users-to-csv.php:169
50
- msgid "Start Date"
51
- msgstr "De"
52
-
53
- #: export-users-to-csv.php:173
54
- msgid "End Date"
55
- msgstr "A"
56
-
57
- #: export-users-to-csv.php:181
58
- msgid "Export"
59
- msgstr "Exporter"
60
-
61
- #. Plugin Name of the plugin/theme
62
- msgid "Export Users to CSV"
63
- msgstr "Export Users to CSV"
64
-
65
- #. Plugin URI of the plugin/theme
66
- msgid "http://pubpoet.com/plugins/"
67
- msgstr "http://pubpoet.com/plugins/"
68
-
69
- #. Description of the plugin/theme
70
- msgid "Export Users data and metadata to a csv file."
71
- msgstr "Exporte les données et métadonnées des utilisateurs de votre site dans un fichier csv."
72
-
73
- #. Author of the plugin/theme
74
- msgid "PubPoet"
75
- msgstr "PubPoet"
76
-
77
- #. Author URI of the plugin/theme
78
- msgid "http://pubpoet.com/"
79
- msgstr "http://pubpoet.com/"
80
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/export-users-to-csv-tr_TR.mo DELETED
Binary file
languages/export-users-to-csv-tr_TR.po DELETED
@@ -1,78 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: Export to CSV\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2011-10-30 17:05+0200\n"
6
- "PO-Revision-Date: \n"
7
- "Last-Translator: Tolga Kaprol <tolgakaprol@gmail.com>\n"
8
- "Language-Team: Tolga Kaprol <wordpress@codementors.com>\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Poedit-Language: Turkish\n"
13
- "X-Poedit-Country: TURKEY\n"
14
- "X-Poedit-SourceCharset: iso-8859-1\n"
15
- "X-Poedit-KeywordsList: __;_e\n"
16
- "X-Poedit-Basepath: .\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: export-users-to-csv.php:57
20
- msgid "Export to CSV"
21
- msgstr "CSV'ye Aktar"
22
-
23
- #: export-users-to-csv.php:135
24
- msgid "You do not have sufficient permissions to access this page."
25
- msgstr "Bu sayfaya ulaşmak için yetkiniz yoktur."
26
-
27
- #: export-users-to-csv.php:139
28
- msgid "Export users to a CSV file"
29
- msgstr "Kullanıcıları CSV'ye Aktar"
30
-
31
- #: export-users-to-csv.php:142
32
- msgid "No user found."
33
- msgstr "Kullanıcı bulunamadı."
34
-
35
- #: export-users-to-csv.php:149
36
- msgid "Role"
37
- msgstr "Rol"
38
-
39
- #: export-users-to-csv.php:153
40
- msgid "Every Role"
41
- msgstr "Tüm Roller"
42
-
43
- #: export-users-to-csv.php:163
44
- msgid "Date range"
45
- msgstr "Tarih Aralığı"
46
-
47
- #: export-users-to-csv.php:166
48
- msgid "Start Date"
49
- msgstr "Başlangıç Tarihi"
50
-
51
- #: export-users-to-csv.php:170
52
- msgid "End Date"
53
- msgstr "Bitiş Tarihi"
54
-
55
- #: export-users-to-csv.php:178
56
- msgid "Export"
57
- msgstr "Dışa Aktar"
58
-
59
- #~ msgid "Do you want to continue?"
60
- #~ msgstr "Devam etmek istiyor musunuz?"
61
-
62
- #~ msgid "What it does "
63
- #~ msgstr "Ne yapar?"
64
-
65
- #~ msgid "Parameters"
66
- #~ msgstr "Parametreler"
67
-
68
- #~ msgid "Example"
69
- #~ msgstr "Örnek"
70
-
71
- #~ msgid "Popular Posts"
72
- #~ msgstr "Popüler İçerikler"
73
-
74
- #~ msgid "Success! The cache table has been cleared!"
75
- #~ msgstr "Tebrikler! Önbellek tablosu temizlendi!"
76
-
77
- #~ msgid "Wordpress Popular Posts Stats"
78
- #~ msgstr "Wordpress Popüler İçerikler İstatistikleri"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/export-users-to-csv.pot DELETED
@@ -1,78 +0,0 @@
1
- # Translation of the WordPress plugin Export Users to CSV 0.3 by PubPoet.
2
- # Copyright (C) 2011 PubPoet
3
- # This file is distributed under the same license as the Export Users to CSV package.
4
- # Ulrich Sossou <http://github.com/sorich87>, 2011.
5
- #
6
- #, fuzzy
7
- msgid ""
8
- msgstr ""
9
- "Project-Id-Version: Export Users to CSV 0.3\n"
10
- "Report-Msgid-Bugs-To: http://wordpress.org/tag/export-users-to-csv\n"
11
- "POT-Creation-Date: 2011-11-27 09:07+0100\n"
12
- "PO-Revision-Date: 2011-MO-DA HO:MI+ZONE\n"
13
- "Last-Translator: Ulrich Sossou <http://github.com/sorich87>\n"
14
- "Language-Team: Ulrich Sossou <http://github.com/sorich87>\n"
15
- "Language: \n"
16
- "MIME-Version: 1.0\n"
17
- "Content-Type: text/plain; charset=utf-8\n"
18
- "Content-Transfer-Encoding: 8bit\n"
19
-
20
- #: export-users-to-csv.php:58
21
- msgid "Export to CSV"
22
- msgstr ""
23
-
24
- #: export-users-to-csv.php:138
25
- msgid "You do not have sufficient permissions to access this page."
26
- msgstr ""
27
-
28
- #: export-users-to-csv.php:142
29
- msgid "Export users to a CSV file"
30
- msgstr ""
31
-
32
- #: export-users-to-csv.php:145
33
- msgid "No user found."
34
- msgstr ""
35
-
36
- #: export-users-to-csv.php:152
37
- msgid "Role"
38
- msgstr ""
39
-
40
- #: export-users-to-csv.php:156
41
- msgid "Every Role"
42
- msgstr ""
43
-
44
- #: export-users-to-csv.php:166
45
- msgid "Date range"
46
- msgstr ""
47
-
48
- #: export-users-to-csv.php:169
49
- msgid "Start Date"
50
- msgstr ""
51
-
52
- #: export-users-to-csv.php:173
53
- msgid "End Date"
54
- msgstr ""
55
-
56
- #: export-users-to-csv.php:181
57
- msgid "Export"
58
- msgstr ""
59
-
60
- #. Plugin Name of the plugin/theme
61
- msgid "Export Users to CSV"
62
- msgstr ""
63
-
64
- #. Plugin URI of the plugin/theme
65
- msgid "http://pubpoet.com/plugins/"
66
- msgstr ""
67
-
68
- #. Description of the plugin/theme
69
- msgid "Export Users data and metadata to a csv file."
70
- msgstr ""
71
-
72
- #. Author of the plugin/theme
73
- msgid "PubPoet"
74
- msgstr ""
75
-
76
- #. Author URI of the plugin/theme
77
- msgid "http://pubpoet.com/"
78
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -1,81 +1,84 @@
1
- === Plugin Name ===
2
- Contributors: webdevmattcrom
3
- Tags: user, users, csv, batch, export, exporter, admin
4
- Requires at least: 4.2
5
- Tested up to: 4.8
6
- Stable tag: 1.0.1
7
-
8
- Export users data and metadata to a csv file
9
-
10
- == Description ==
11
-
12
- A plugin that exports ALL user data and user meta to a CSV file, elegantly and simply.
13
-
14
- Export users by role and optionally set a registration date range.
15
-
16
- Export is found in "Users > Export to CSV"
17
-
18
- = Features =
19
-
20
- * Exports all users fields
21
- * Exports users meta
22
- * Exports users by role
23
- * Exports users by date range
24
-
25
- Issues and Pull Requests for feature requests or bug reports [are welcome at Github](https://github.com/mathetos/export-users-to-csv).
26
-
27
- == Installation ==
28
-
29
- For an automatic installation through WordPress:
30
-
31
- 1. Go to the 'Add New' plugins screen in your WordPress admin area
32
- 2. Search for 'Export Users to CSV'
33
- 3. Click 'Install Now' and activate the plugin
34
- 4. Go the 'Users' menu, under 'Export to CSV'
35
-
36
-
37
- For a manual installation via FTP:
38
-
39
- 1. Upload the `export-users-to-csv` directory to the `/wp-content/plugins/` directory
40
- 2. Activate the plugin through the 'Plugins' screen in your WordPress admin area
41
- 3. Go the 'Users' menu, under 'Export to CSV'
42
-
43
- To upload the plugin through WordPress, instead of FTP:
44
-
45
- 1. Upload the downloaded zip file on the 'Add New' plugins screen (see the 'Upload' tab) in your WordPress admin area and activate.
46
- 2. Go the 'Users' menu, under 'Export to CSV'
47
-
48
- == Frequently Asked Questions ==
49
-
50
- = How to use? =
51
-
52
- Click on the 'Export to CSV' link in the 'Users' menu, choose the role and the date range or don't select anything if you want to export all users, then click 'Export'. That's all!
53
-
54
- == Screenshots ==
55
-
56
- 1. User export screen
57
-
58
- == Changelog ==
59
-
60
- = 1.0.1 =
61
- * This plugin has been adopted by [Matt Cromwell](https://profiles.wordpress.org/webdevmattcrom). You can expect new features to be rolled out soon.
62
-
63
- = 0.2 =
64
- * First public release.
65
- * Improved memory usage.
66
- * Added date range selection.
67
- * Added readme.txt.
68
-
69
- = 0.1 =
70
- * First release.
71
-
72
- == Upgrade Notice ==
73
-
74
- = 1.0.1 =
75
- * This plugin has been adopted by [Matt Cromwell](https://profiles.wordpress.org/webdevmattcrom). You can expect new features to be rolled out soon.
76
-
77
- = 0.2 =
78
- Improved memory usage. Added date range selection. Added readme.txt.
79
-
80
- = 0.1 =
81
- First release.
 
 
 
1
+ === Plugin Name ===
2
+ Contributors: webdevmattcrom
3
+ Tags: user, users, csv, batch, export, exporter, admin
4
+ Requires at least: 4.2
5
+ Tested up to: 4.8
6
+ Stable tag: 1.1
7
+
8
+ Export users data and metadata to a csv file
9
+
10
+ == Description ==
11
+
12
+ A plugin that exports ALL user data and user meta to a CSV file, elegantly and simply.
13
+
14
+ Export users by role and optionally set a registration date range.
15
+
16
+ Export is found in "Tools > Export", or with the "Export Users" button on the Users admin screen.
17
+
18
+ = Features =
19
+
20
+ * Exports all users fields
21
+ * Exports users meta
22
+ * Exports users by role
23
+ * Exports users by date range
24
+
25
+ Issues and Pull Requests for feature requests or bug reports [are welcome at Github](https://github.com/mathetos/export-users-to-csv).
26
+
27
+ == Installation ==
28
+
29
+ For an automatic installation through WordPress:
30
+
31
+ 1. Go to the 'Add New' plugins screen in your WordPress admin area
32
+ 2. Search for 'Export Users to CSV'
33
+ 3. Click 'Install Now' and activate the plugin
34
+ 4. Go the 'Users' menu, under 'Export to CSV'
35
+
36
+
37
+ For a manual installation via FTP:
38
+
39
+ 1. Upload the `export-users-to-csv` directory to the `/wp-content/plugins/` directory
40
+ 2. Activate the plugin through the 'Plugins' screen in your WordPress admin area
41
+ 3. Go the 'Users' menu, under 'Export to CSV'
42
+
43
+ To upload the plugin through WordPress, instead of FTP:
44
+
45
+ 1. Upload the downloaded zip file on the 'Add New' plugins screen (see the 'Upload' tab) in your WordPress admin area and activate.
46
+ 2. Go the 'Users' menu, under 'Export to CSV'
47
+
48
+ == Frequently Asked Questions ==
49
+
50
+ = How to use? =
51
+
52
+ Click on the 'Export Users' button at the top of the 'Users' admin screen, or navigate to "Tools > Export." From there, choose "Users" as your export, then choose the role and the date range. Choose nothing at all if you want to export all users, then click 'Export'. That's all!
53
+
54
+ == Screenshots ==
55
+
56
+ 1. The User export tool
57
+ 2. The User Export button at the top of the Users admin page
58
+
59
+ == Changelog ==
60
+
61
+ = 1.1 (February 25, 2018) =
62
+ * Moved screen to the "Tools > Export" screen to leverage WordPress core export features. [Github Issue #2](https://github.com/mathetos/export-users-to-csv/issues/2)
63
+ * Removed local translations and updated load_textdomain to look for the localized files in the correct WordPress core folder. [Github Issue #1](https://github.com/mathetos/export-users-to-csv/issues/1)
64
+ * Add "Export Users" button to the Users admin screen for increased visibility. [Github Issue #11](https://github.com/mathetos/export-users-to-csv/issues/11)
65
+
66
+ = 1.0.1 =
67
+ * This plugin has been adopted by [Matt Cromwell](https://profiles.wordpress.org/webdevmattcrom). You can expect new features to be rolled out soon.
68
+
69
+ = 0.2 =
70
+ * First public release.
71
+ * Improved memory usage.
72
+ * Added date range selection.
73
+ * Added readme.txt.
74
+
75
+ = 0.1 =
76
+ * First release.
77
+
78
+ == Upgrade Notice ==
79
+
80
+ = 1.1 =
81
+ * The User export now uses WordPress core export features and is found at "Tools > Export".
82
+
83
+ = 1.0.1 =
84
+ * This plugin has been adopted by [Matt Cromwell](https://profiles.wordpress.org/webdevmattcrom). You can expect new features to be rolled out soon.