Skip to content

Instantly share code, notes, and snippets.

Last active August 29, 2015 14:19
What would you like to do?
Example of how to override a WP-CLI command
if ( defined('WP_CLI') && WP_CLI ) {
class Transient_Mod_Command extends Transient_Command {
public function delete_all() {
// new definition of delete-all subcommand
WP_CLI::add_command( 'transient', 'Transient_Mod_Command' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment