get_noptin_subscriber_opened_campaigns( int $subscriber_id )

Retrieves all the campaigns a given subscriber has opened


Parameters Parameters

$subscriber_id

(int) (Required) Subscriber ID.


Top ↑

Return Return

(int[]) Array of opened campaigns.


Top ↑

Source Source

File: includes/subscriber.php

function get_noptin_subscriber_opened_campaigns( $subscriber_id ) {

	$opened_campaigns = get_noptin_subscriber_meta( $subscriber_id, '_opened_campaigns', true );
	if ( empty( $opened_campaigns ) ) {
		$opened_campaigns = array();
	}
	return array_map( 'intval', noptin_parse_list( $opened_campaigns ) );

}


Top ↑

Changelog Changelog

Changelog
VersionDescription
1.2.0Introduced.

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