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
Return Return
(mixed) Will be an array if $single is false. Will be value of meta data field if $single is true.
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 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.5 | Introduced. |