Noptin_Abstract_Integration::add_subscriber( array $subscriber_details, mixed $integration_details = null )

Subscribes a new user.


Parameters Parameters

$subscriber_details

(array) (Required) An array of subscriber details.

$integration_details

(mixed) (Optional) Subscriber Integration details.

Default value: null


Top ↑

Source Source

File: includes/integrations/class-noptin-abstract-integration.php

	protected function add_subscriber( array $subscriber_details, $integration_details = null ) {

		// Append integration details to the subscriber.
		$subscriber_details['integration_data'] = $integration_details;

		// Filter the subscriber details for a specific integration.
		$subscriber_details = apply_filters( "noptin_{$this->slug}_integration_new_subscriber_fields", $subscriber_details, $integration_details, $this );

		// Filter the subscriber details for all integrations.
		$subscriber_details = apply_filters( "noptin_integration_new_subscriber_fields", $subscriber_details, $this->slug, $integration_details, $this );

		// Subscribe the new user.
		add_noptin_subscriber( $subscriber_details );
	}


Top ↑

Changelog Changelog

Changelog
VersionDescription
1.2.6Introduced.

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