Skip to content

Commit

Permalink
Add Sensei_Guest_User's and Sensei_Preview_User's skip_wp_mail filter…
Browse files Browse the repository at this point in the history
… in the Sensei_Temporary_User class
  • Loading branch information
fjorgemota committed May 9, 2023
1 parent 6bcd03a commit d3771e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/class-sensei-temporary-user.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public static function init() {
add_filter( 'sensei_learners_query', [ static::class, 'filter_learners_query' ] );
add_filter( 'sensei_count_statuses_args', [ static::class, 'filter_count_statuses' ] );
add_filter( 'sensei_check_for_activity', [ static::class, 'filter_sensei_activity' ], 10, 2 );
add_filter( 'pre_wp_mail', [ Sensei_Guest_User::class, 'skip_wp_mail' ], 10, 2 );
add_filter( 'pre_wp_mail', [ Sensei_Preview_User::class, 'skip_wp_mail' ], 10, 2 );
}

/**
Expand Down

0 comments on commit d3771e4

Please sign in to comment.