Created
April 29, 2019 15:45
-
-
Save lgedeon/815d44ea495bc942a39ea5f426f36b67 to your computer and use it in GitHub Desktop.
from class i-i3.php
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 | |
/** | |
* Determines whether WP CLI is running. | |
* | |
* @return bool True if CLI, false otherwise. | |
*/ | |
public function is_cli() { | |
return ( defined( 'WP_CLI' ) && true === WP_CLI ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment