Skip to content

Commit 53800b4

Browse files
authored
Merge pull request #38 from tawk/release/support-version-67
release/support-version-67
2 parents 9198110 + b2a81a1 commit 53800b4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/ui-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
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

tawkto/tawkto.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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';

0 commit comments

Comments
 (0)