Noptin_New_Post_Notify::filter_test_email_data( $data )

Add post data to new post notification test email.


Source Source

File: includes/class-noptin-new-post-notify.php

	public function filter_test_email_data( $data ) {

		if ( ! empty( $data['noptin_is_new_post_notification'] ) ) {
			$posts = get_posts('numberposts=1');

			if ( ! empty( $posts ) ) {
				$data['merge_tags'] = array_merge( $data['merge_tags'], $this->get_post_merge_tags( $posts[0] ) );
			}
		}

		return $data;

	}


Top ↑

User Contributed Notes User Contributed Notes

30 day money back guarantee
Safe & Secure online payment
Custom CSS Slide Example
Custom Animation Example
Default Animation