WP_CLI
Runner::wp_exists()
Do WordPress core files exist?
Method of the class: Runner{}
No Hooks.
Return
true|false
.
Usage
// private - for code of main (parent) class only $result = $this->wp_exists();
Runner::wp_exists() Runner::wp exists code WP-CLI 2.8.0-alpha
private function wp_exists() { return file_exists( ABSPATH . 'wp-includes/version.php' ); }