Noptin_New_Post_Notify::about_automation( $about,  $type,  $automation )

Filters an automation’s details


Source Source

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

	public function about_automation( $about, $type, $automation ) {

		if ( 'post_notifications' !== $type ) {
			return $about;
		}

		$delay = 'immeadiately';

		$sends_after      = (int) get_post_meta( $automation->ID, 'noptin_sends_after', true );
		$sends_after_unit = sanitize_text_field( get_post_meta( $automation->ID, 'noptin_sends_after_unit', true ) );

		if ( $sends_after ) {
			$delay = "$sends_after $sends_after_unit after";
		}

		return sprintf(
				__( "Sends %s new content is published", 'newsletter-optin-box' ),
				"<em style='color: #607D8B;'>$delay</em>"
	 	);
	}

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