Changeset 2984633
- Timestamp:
- 10/26/2023 08:59:25 PM (2 years ago)
- Location:
- sackson-web-data/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (2 diffs)
-
includes/class-sacksonweb-data-helper.php (modified) (1 diff)
-
sacksonweb-data.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sackson-web-data/trunk/README.txt
r2983330 r2984633 5 5 Requires at least: 3.0.1 6 6 Tested up to: 6.0 7 Stable tag: 1.2. 37 Stable tag: 1.2.4 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 50 50 51 51 == Changelog == 52 53 = 1.2.4 = 54 * Bug fixes 52 55 53 56 = 1.2.3 = -
sackson-web-data/trunk/includes/class-sacksonweb-data-helper.php
r2983330 r2984633 372 372 function getUserData() 373 373 { 374 // $DBRecord = array(); 375 // $args = [ 376 // 'fields' => 'all_with_meta', 377 // 'orderby' => 'last_name', 378 // 'order' => 'ASC' 379 // ]; 380 // $users = get_users( $args ); 381 // return; 382 // $i=0; 383 // foreach ( $users as $user ) 384 // { 385 // $DBRecord[$i]['WPId'] = $user->ID; 386 // $DBRecord[$i]['FirstName'] = $user->first_name; 387 // $DBRecord[$i]['LastName'] = $user->last_name; 388 // $DBRecord[$i]['RegisteredDate'] = $user->user_registered; 389 // $DBRecord[$i]['Email'] = $user->user_email; 390 // $DBRecord[$i]['DisplayName'] = $user->display_name; 391 // $DBRecord[$i]['UserNiceName'] = $user->user_nice_name; 392 393 // $i++; 394 // } 395 // $this->collected_data['user_list'] = json_encode($DBRecord); 396 397 398 399 global $wpdb; 374 400 $DBRecord = array(); 375 $args = array( 376 /*'role' => 'Subscriber',*/ 377 'orderby' => 'last_name', 378 'order' => 'ASC' 379 ); 380 $users = get_users( $args ); 401 $user_table = $wpdb->prefix . 'users'; 402 $users = $wpdb->get_results("SELECT * FROM $user_table"); 381 403 $i=0; 382 foreach ( $users as $user ) 383 { 384 // $this->debug_to_console($user->user_nice_name); 385 // $this->debug_to_console($user->display_name); 386 //$DBRecord[$i]['role'] = "Subscriber"; 404 foreach ($users as $user) 405 { 387 406 $DBRecord[$i]['WPId'] = $user->ID; 388 $DBRecord[$i]['FirstName'] = $user->first_name;389 $DBRecord[$i]['LastName'] = $user->last_name;407 // $DBRecord[$i]['FirstName'] = $user->first_name; 408 // $DBRecord[$i]['LastName'] = $user->last_name; 390 409 $DBRecord[$i]['RegisteredDate'] = $user->user_registered; 391 410 $DBRecord[$i]['Email'] = $user->user_email; 392 411 $DBRecord[$i]['DisplayName'] = $user->display_name; 393 $DBRecord[$i]['UserNiceName'] = $user->user_nice_name; 394 395 //$UserData = get_user_meta( $user->ID ); 396 // $DBRecord[$i]['Company'] = $UserData['billing_company'][0]; // $DBRecord[$i]['Address'] = $UserData['billing_address_1'][0]; // $DBRecord[$i]['City'] = $UserData['billing_city'][0]; 397 // $DBRecord[$i]['State'] = $UserData['billing_state'][0]; // $DBRecord[$i]['PostCode'] = $UserData['billing_postcode'][0]; // $DBRecord[$i]['Country'] = $UserData['billing_country'][0]; 398 // $DBRecord[$i]['Phone'] = $UserData['billing_phone'][0]; 412 $DBRecord[$i]['UserNiceName'] = $user->user_nicename; 399 413 $i++; 400 414 } 401 402 403 // require_once("../../../../wp-load.php");404 // $headers = array('Content-Type: text/html; charset=UTF-8');405 // wp_mail('[email protected]', 'user_list', print_r($DBRecord, true), $headers);406 //echo '#';407 408 415 $this->collected_data['user_list'] = json_encode($DBRecord); 416 409 417 } 410 418 -
sackson-web-data/trunk/sacksonweb-data.php
r2983330 r2984633 10 10 * 11 11 * @link http://data.sacksonweb.com/author 12 * @since 1.2. 312 * @since 1.2.4 13 13 * @package Sacksonweb_Data 14 14 * … … 17 17 * Plugin URI: http://data.sacksonweb.com 18 18 * Description: A tool to monitor security issues, performance issues, and Wordpress settings that should be changed. 19 * Version: 1.2. 319 * Version: 1.2.4 20 20 * Author: Eric Thornton 21 21 * Author URI: http://data.sacksonweb.com/author … … 35 35 * 36 36 */ 37 define( 'SACKSONWEB_DATA_VERSION', '1.2. 3' );37 define( 'SACKSONWEB_DATA_VERSION', '1.2.4' ); 38 38 39 39 /**
Note: See TracChangeset
for help on using the changeset viewer.