Skip to content

Commit

Permalink
fix(data-events): earlier priority for webhook registration
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpeixe committed Oct 5, 2023
1 parent 94f0506 commit 75915d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/data-events/class-webhooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ final class Webhooks {
* Initialize hooks.
*/
public static function init() {
\add_action( 'init', [ __CLASS__, 'register_request_post_type' ] );
\add_action( 'init', [ __CLASS__, 'register_endpoint_taxonomy' ] );
\add_action( 'init', [ __CLASS__, 'register_request_post_type' ], 1, 0 );
\add_action( 'init', [ __CLASS__, 'register_endpoint_taxonomy' ], 1, 0 );
\add_action( 'init', [ __CLASS__, 'register_cron_events' ] );
\add_action( 'newspack_deactivation', [ __CLASS__, 'clear_cron_events' ] );
\add_action( 'newspack_data_event_dispatch', [ __CLASS__, 'handle_dispatch' ], 10, 4 );
Expand Down

0 comments on commit 75915d2

Please sign in to comment.