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


(int) (Required) Subscriber ID.


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


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


(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


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