Skip to content

Commit

Permalink
test notification (unscheduled)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvanoord committed Feb 26, 2024
1 parent 9596de8 commit 29d0d23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/bcc-login/includes/class-bcc-notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ function __construct( BCC_Login_Settings $settings, BCC_Coreapi_Client $core_api

public function on_post_status_transition( $new_status, $old_status, $post ) {
if ('publish' === $new_status && 'publish' !== $old_status) {
wp_schedule_single_event( time() + 180, 'send_scheduled_notification', array( $post->ID ) );
// $this->send_notification($post->ID);
//wp_schedule_single_event( time() + 180, 'send_scheduled_notification', array( $post->ID ) );
$this->send_notification($post->ID);
}
}

Expand Down

0 comments on commit 29d0d23

Please sign in to comment.