This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Get all users with `wpcli.loc` in their email address | |
* and export them to `users.csv` file. | |
* | |
* Execute this script with: | |
* wp eval-file get-users.php | |
*/ | |
$fields = [ |
OlderNewer