add_noptin_subscriber_meta( int $subscriber_id, string $meta_key, mixed $meta_value, mixed $unique = false )

Adds subscriber meta field for a subscriber.


Parameters Parameters

$subscriber_id

(int) (Required) Subscriber ID.

$meta_key

(string) (Required) The meta key to update.

$meta_value

(mixed) (Required) Metadata value. Must be serializable if non-scalar.

$unique

(mixed) (Optional) Whether the same key should not be added.

Default value: false


Top ↑

Return Return

(int|false) Meta ID on success, false on failure.


Top ↑

Source Source

File: includes/subscriber.php

function add_noptin_subscriber_meta( $subscriber_id, $meta_key, $meta_value, $unique = false ) {
	return add_metadata( 'noptin_subscriber', $subscriber_id, $meta_key, $meta_value, $unique );
}

Top ↑

Changelog Changelog

Changelog
VersionDescription
1.0.5Introduced.

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