Skip to content

Commit

Permalink
SUP-32728 Check if the CiviCRM Event Organiser plugin is enabled befo…
Browse files Browse the repository at this point in the history
…re adding CiviCRM Event Organiser filters. Version 1.8.1
  • Loading branch information
agileware-justin committed Aug 31, 2021
1 parent 704b30a commit 7ea382c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion civicrm-ux.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Start at version 1.0.0 and use SemVer - https://semver.org
* Rename this for your plugin and update it as you release new versions.
*/
define( 'CIVICRM_UXVERSION', '1.8.0' );
define( 'CIVICRM_UXVERSION', '1.8.1' );

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
Expand Down
7 changes: 4 additions & 3 deletions includes/class-civicrm-ux.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,10 @@ private function define_public_hooks() {
$this->loader->add_filter( 'avada_page_title_bar_contents', $plugin_public, 'avada_page_title_bar_contents' );

// Use the event time zone from Civi when displaying times in Event Organiser.
$this->loader->add_action( 'eventorganiser_get_the_start', $plugin_public, 'event_organiser_timezone_filter', 10, 5 );
$this->loader->add_action( 'eventorganiser_get_the_end', $plugin_public, 'event_organiser_timezone_filter', 10, 5 );

if (class_exists('CiviCRM_WP_Event_Organiser')) {
$this->loader->add_action('eventorganiser_get_the_start', $plugin_public, 'event_organiser_timezone_filter', 10, 5);
$this->loader->add_action('eventorganiser_get_the_end', $plugin_public, 'event_organiser_timezone_filter', 10, 5);
}
}

/**
Expand Down

0 comments on commit 7ea382c

Please sign in to comment.