get_noptin_subscriber_meta( int $subscriber_id, string $meta_key = '', bool $single = false )

Retrieve subscriber meta field for a subscriber.


Parameters Parameters

$subscriber_id

(int) (Required) Subscriber ID.

$meta_key

(string) (Optional) The meta key to retrieve. By default, returns data for all keys.

Default value: ''

$single

(bool) (Optional) If true, returns only the first value for the specified meta key. This parameter has no effect if $key is not specified.

Default value: false


Top ↑

Return Return

(mixed) Will be an array if $single is false. Will be value of meta data field if $single is true.


Top ↑

Source Source

File: includes/subscriber.php

function get_noptin_subscriber_meta( $subscriber_id = 0, $meta_key = '', $single = false ) {
	return get_metadata( 'noptin_subscriber', $subscriber_id, $meta_key, $single );
}


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