Can I create multiple pages at once using WP-CLI?

There are a few ways. As mentioned, post generate. wp post generate –count=10 –post_type=page –post_date=1999-01-04 curl http://loripsum.net/api/5 | wp post generate –post_content –count=10 You could write your own custom command. See the List of community commands for examples or the package index. <?php /** * Implements example command. */ class Example_Command extends WP_CLI_Command { /** … Read more

Remove all users from site except one using WP CLI

Found out you can pass the –exclude option to wp user list to exclude a user by their ID from the list. So let’s assume your user ID is 2 then you could do the following: wp user delete $(wp user list –field=ID –exclude=2) And just to be sure all content gets reassigned to you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)