ACF_Admin_Email_Opt_In_Banner::build_opt_in_payload
Builds the opt-in submission payload in the API shape expected by the endpoint that subscribes the email address to ACF updates and news.
Method of the class: ACF_Admin_Email_Opt_In_Banner{}
No Hooks.
Returns
Array.
Usage
// private - for code of main (parent) class only $result = $this->build_opt_in_payload( $email );
- $email(string) (required)
- Sanitized email address.
Changelog
| Since 6.8.6 | Introduced. |
ACF_Admin_Email_Opt_In_Banner::build_opt_in_payload() ACF Admin Email Opt In Banner::build opt in payload code ACF 6.8.8
private function build_opt_in_payload( $email ) {
return array(
'fields' => array(
array(
'objectTypeId' => '0-1',
'name' => 'email',
'value' => $email,
),
),
);
}