Pinned stories
Other stories

WP CLI custom commands not working

Posted on Tue 19 June 2018 in wordpress, wp-cli

Make sure to add them in active code. Adding a spare php file with the WP-CLI command definition in /wordpress won't work, because that code won't be loaded by WP. Dropping the file into wp-content …