Noptin_New_Post_Notify::show_help_text( $campaign,  $automation_type )

Filters default automation data.


Parameters Parameters

$data

(array) (Required) The automation data.


Top ↑

Source Source

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

	public function show_help_text( $campaign, $automation_type ) {

		if ( 'post_notifications' === $automation_type ) {

			$url = add_query_arg(
				array(
					'utm_medium'   => 'plugin-dashboard',
					'utm_campaign' => 'new-post-notifications',
					'utm_source'   => esc_url( get_home_url() ),
				),
				'https://noptin.com/guide/email-automations/new-post-notifications/'
			);

			$help_text = sprintf(
				__( 'Learn more about %show to set up new post notifications%s.', 'newsletter-optin-box' ),
				"<a href='$url'>",
				'</a>'
			);

			echo "<p class='description'>$help_text</p>";
			echo '<input type="hidden" name="noptin_is_new_post_notification" value="1" />';

		}

	}

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