did_noptin_subscriber_click_campaign( int $subscriber_id, int $campaign_id, string $link = false )

Checks whether a subscriber clicked on a link in a given campaign


Parameters Parameters

$subscriber_id

(int) (Required) Subscriber ID.

$campaign_id

(int) (Required) The campaign id to check for a click from.

$link

(string) (Optional) The specific link to check for.

Default value: false


Top ↑

Source Source

File: includes/subscriber.php

function did_noptin_subscriber_click_campaign( $subscriber_id, $campaign_id, $link = false ) {

	$clicked_campaigns = get_noptin_subscriber_clicked_campaigns( $subscriber_id );

	if ( empty( $clicked_campaigns[ $campaign_id ] ) ) {
		return false;
	}

	if ( empty( $link ) ) {
		return true;
	}

	return in_array( noptin_clean( $link ), $clicked_campaigns[ $campaign_id ], true );

}


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