Skip to content

Commit

Permalink
Updated Priority to 100
Browse files Browse the repository at this point in the history
Updated priority to 100 as suggested by @remcotolsma
  • Loading branch information
knit-pay committed Jun 4, 2024
1 parent 95a7664 commit 4819307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ public function __construct( $args = [] ) {
add_action( 'init', [ $this, 'register_styles' ], 9 );

// If WordPress is loaded check on returns and maybe redirect requests.
add_action( 'wp_loaded', [ $this, 'handle_returns' ], PHP_INT_MAX );
add_action( 'wp_loaded', [ $this, 'maybe_redirect' ], PHP_INT_MAX );
add_action( 'wp_loaded', [ $this, 'handle_returns' ], 100 );
add_action( 'wp_loaded', [ $this, 'maybe_redirect' ], 100 );

// Default date time format.
add_filter( 'pronamic_datetime_default_format', [ $this, 'datetime_format' ], 10, 1 );
Expand Down

0 comments on commit 4819307

Please sign in to comment.