Skip to content

Commit

Permalink
Merge pull request #38 from tawk/release/support-version-67
Browse files Browse the repository at this point in the history
release/support-version-67
  • Loading branch information
eug-L authored Nov 27, 2024
2 parents 9198110 + b2a81a1 commit 53800b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:

- name: Start docker services and setup WordPress
run: |
docker-compose -f ./tests/docker/docker-compose.yml up -d;
docker compose -f ./tests/docker/docker-compose.yml up -d;
docker attach wordpress-cli;
- name: cached dependencies
Expand Down
8 changes: 8 additions & 0 deletions tawkto/tawkto.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,21 @@ public function __construct() {
update_option( 'tawkto-visibility-options', $visibility );
}

add_action( 'wp_loaded', array( &$this, 'init' ) );
add_action( 'admin_init', array( &$this, 'admin_init' ) );
add_action( 'admin_menu', array( &$this, 'add_menu' ) );
add_action( 'wp_ajax_tawkto_setwidget', array( &$this, 'action_setwidget' ) );
add_action( 'wp_ajax_tawkto_removewidget', array( &$this, 'action_removewidget' ) );
add_action( 'admin_enqueue_scripts', array( $this, 'tawk_settings_assets' ) );
add_action( 'admin_notices', array( $this, 'tawk_admin_notice' ) );
}

/**
* Initializes the plugin data
*
* @return void
*/
public function init() {
if ( is_admin() ) {
if ( false === function_exists( 'get_plugin_data' ) ) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
Expand Down

0 comments on commit 53800b4

Please sign in to comment.