Noptin_New_Post_Notify::maybe_send_notification( $post_id, $campaign_id, $key = '' )
(Maybe) Send out a new post notification
Source Source
File: includes/class-noptin-new-post-notify.php
public function maybe_send_notification( $post_id, $campaign_id, $key = '' ) { // If a notification has already been send abort... if ( get_post_meta( $post_id, 'noptin_associated_new_post_notification_campaign', true ) ) { return; } if ( empty( $key ) ) { $key = $post_id . '_' . $campaign_id; } $this->notify( $post_id, $campaign_id, $key ); }
Expand full source code Collapse full source code View on GitHub