Skip to content

Commit 29d0d23

Browse files
committed
test notification (unscheduled)
1 parent 9596de8 commit 29d0d23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/bcc-login/includes/class-bcc-notifications.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ function __construct( BCC_Login_Settings $settings, BCC_Coreapi_Client $core_api
1616

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

0 commit comments

Comments
 (0)