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 | 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 +320 -229
- languages/export-users-to-csv-fr_FR.mo +0 -0
- languages/export-users-to-csv-fr_FR.po +0 -80
- languages/export-users-to-csv-tr_TR.mo +0 -0
- languages/export-users-to-csv-tr_TR.po +0 -78
- languages/export-users-to-csv.pot +0 -78
- readme.txt +84 -81
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.
|
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 |
-
|
44 |
-
add_action( '
|
45 |
-
add_filter( 'pp_eu_exclude_data', array( $this, 'exclude_data' ) );
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
<
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
$
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
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 "
|
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
|
53 |
-
|
54 |
-
== Screenshots ==
|
55 |
-
|
56 |
-
1. User export
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
*
|
65 |
-
|
66 |
-
|
67 |
-
*
|
68 |
-
|
69 |
-
= 0.
|
70 |
-
* First release.
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
=
|
81 |
-
|
|
|
|
|
|
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.
|