Skip to content

Commit

Permalink
Revert "WPCIVIUX-120 Move load hook back to init and register shortco…
Browse files Browse the repository at this point in the history
…des immediately."

This reverts commit 983da24.
  • Loading branch information
agileware-justin committed Jan 19, 2023
1 parent 6b793d8 commit 3e1b976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/class-civicrm-ux.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ private function define_shortcodes() {

$shortcode_manager = new Civicrm_Ux_Shortcode_Manager( $this );

$shortcode_manager->register_shortcodes();
$this->loader->add_action( 'init', $shortcode_manager, 'register_shortcodes' );
}

private function define_rest() {
Expand Down Expand Up @@ -296,7 +296,7 @@ private function register_options() {
* @since 1.0.0
*/
public function run() {
add_action('init', [$this->loader, 'run']);
add_action('plugins_loaded', [$this->loader, 'run']);
}

/**
Expand Down

0 comments on commit 3e1b976

Please sign in to comment.