Noptin_New_Post_Notify::init()

Inits hooks


Source Source

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

	function init() {

		// Default automation data.
		add_filter( 'noptin_email_automation_setup_data', array( $this, 'default_automation_data' ) );

		// Set up cb.
		add_filter( 'noptin_email_automation_triggers', array( $this, 'register_automation_settings' ) );

		// Notify subscribers.
		add_action( 'transition_post_status', array( $this, 'maybe_schedule_notification' ), 10, 3 );
		add_action( 'noptin_new_post_notification', array( $this, 'maybe_send_notification' ), 10, 2 );
		add_action( 'publish_noptin-campaign', array( $this, 'maybe_send_old_notification' ) );
		add_action( 'noptin_background_mailer_complete', array( $this, 'notification_complete' ) );

		// Automation details.
		add_filter( 'noptin_automation_table_about', array( $this, 'about_automation' ), 10, 3 );

		// Display a help text below the email body.
		add_action( 'noptin_automation_campaign_after_email_body', array( $this, 'show_help_text' ), 10, 2 );

		// Allow sending a test email for new post notifications.
		add_action( 'noptin_test_email_data', array( $this, 'filter_test_email_data' ), 10, 2 );
	}

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