I’m trying to run PHPUnit to unittest a WordPress plugin, but the error below keeps showing up. Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /private/tmp/wordpress/wp-includes/wp-db.php on line...
I read near the end of this guide regarding utilizing SSHguard to protect WordPress from Brute force attacks that after configuring SSHguard the relevant way, one must: disable XML-RPC...
I want to setup WP CLI. On the home page it says that it needs a UNIX like operating system. I am running windows 7 for development but I...
I want to make a user-create snippet, but it must not includes plain password. $ wp user create username username@example.com --role=administrator --user_pass=password So can I create (or update) user...
I have an Ubuntu server, typical LAMP stack with default www-data as the user / group under which Apache serves files. When updating with WP-CLI I always have to...
List Multisite Users Using wp-cli(1) If I run wp user list I get a list of the users (2 admins in my case) at the top level of multisite(2)....
What is the difference between: wp search-replace 'http://' 'https://' --allow-root to: wp search-replace 'http://' 'https://' --all-tables-with-prefix --allow-root AFAIU, the first search and replace in all tables without prefix and...
Is there a way to count the number of posts / pages via the WordPress API? I’m wanting to insert a post then check, using the API, that the...
Updated:: I am having issues when adding a custom cli command into an existing wordpress theme. When I run wp --info I get the following: PHP binary: /usr/local/Cellar/php70/7.0.13_6/bin/php PHP...
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 6...