Commit 34d4cb17 authored by Erick Hitter's avatar Erick Hitter
Browse files

Prepare for CLI to be able to create table

parent 256e3457
...@@ -167,6 +167,17 @@ class Events_Store extends Singleton { ...@@ -167,6 +167,17 @@ class Events_Store extends Singleton {
} }
} }
/**
* Prepare table on demand via CLI
*/
public function cli_create_tables() {
if ( ! defined( 'WP_CLI' ) || ! \WP_CLI ) {
return;
}
$this->_prepare_table();
}
/** /**
* PLUGIN FUNCTIONALITY * PLUGIN FUNCTIONALITY
*/ */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment