Noptin_New_Post_Notify::maybe_send_old_notification( $key )
(Maybe) Send out a new post notification.
Description Description
Handles those emails that were scheduled in older versions of the plugin.
Source Source
File: includes/class-noptin-new-post-notify.php
public function maybe_send_old_notification( $key ) { // Is it a bg_email? if ( 'bg_email' !== get_post_meta( $key, 'campaign_type', true ) ) { return; } // Ensure this is a new post notification. if ( 'new_post_notification' !== get_post_meta( $key, 'bg_email_type', true ) ) { return; } $campaign_id = get_post_meta( $key, 'associated_campaign', true ); $post_id = get_post_meta( $key, 'associated_post', true ); $this->maybe_send_notification( $post_id, $campaign_id, $key ); }
Expand full source code Collapse full source code View on GitHub