File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 6363
6464 - name : Start docker services and setup WordPress
6565 run : |
66- docker- compose -f ./tests/docker/docker-compose.yml up -d;
66+ docker compose -f ./tests/docker/docker-compose.yml up -d;
6767 docker attach wordpress-cli;
6868
6969 - name : cached dependencies
Original file line number Diff line number Diff line change @@ -59,13 +59,21 @@ public function __construct() {
5959 update_option ( 'tawkto-visibility-options ' , $ visibility );
6060 }
6161
62+ add_action ( 'wp_loaded ' , array ( &$ this , 'init ' ) );
6263 add_action ( 'admin_init ' , array ( &$ this , 'admin_init ' ) );
6364 add_action ( 'admin_menu ' , array ( &$ this , 'add_menu ' ) );
6465 add_action ( 'wp_ajax_tawkto_setwidget ' , array ( &$ this , 'action_setwidget ' ) );
6566 add_action ( 'wp_ajax_tawkto_removewidget ' , array ( &$ this , 'action_removewidget ' ) );
6667 add_action ( 'admin_enqueue_scripts ' , array ( $ this , 'tawk_settings_assets ' ) );
6768 add_action ( 'admin_notices ' , array ( $ this , 'tawk_admin_notice ' ) );
69+ }
6870
71+ /**
72+ * Initializes the plugin data
73+ *
74+ * @return void
75+ */
76+ public function init () {
6977 if ( is_admin () ) {
7078 if ( false === function_exists ( 'get_plugin_data ' ) ) {
7179 require_once ABSPATH . 'wp-admin/includes/plugin.php ' ;
You can’t perform that action at this time.
0 commit comments