We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fc72b7a + 02baea3 commit f541b74Copy full SHA for f541b74
classes/class-install.php
@@ -70,6 +70,12 @@ public function __construct( $plugin ) {
70
71
$this->db_version = $this->get_db_version();
72
$this->stream_url = self_admin_url( $this->plugin->admin->admin_parent_page . '&page=' . $this->plugin->admin->settings_page_slug );
73
+
74
+ // Ensure the tables are created even when the plugin activation hook does not run,
75
+ // and run the check in WP Admin or on WP CLI to avoid extra frontend load.
76
+ if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI )) {
77
+ $this->check();
78
+ }
79
80
register_activation_hook( $this->plugin->locations['plugin'], array( $this, 'check' ) );
81
}
0 commit comments