wpcf7_sendinblue_save_contact_form()
Saves the sendinblue property value.
Хуков нет.
Возвращает
null. Ничего (null).
Использование
wpcf7_sendinblue_save_contact_form( $contact_form, $args, $context );
- $contact_form(обязательный)
- .
- $args(обязательный)
- .
- $context(обязательный)
- .
Код wpcf7_sendinblue_save_contact_form() wpcf7 sendinblue save contact form CF7 6.1.3
function wpcf7_sendinblue_save_contact_form( $contact_form, $args, $context ) {
$service = WPCF7_Sendinblue::get_instance();
if ( ! $service->is_active() ) {
return;
}
$prop = wp_parse_args(
(array) wpcf7_superglobal_post( 'wpcf7-sendinblue', array() ),
array(
'enable_contact_list' => false,
'contact_lists' => array(),
'enable_transactional_email' => false,
'email_template' => 0,
)
);
$prop['contact_lists'] = array_map( 'absint', $prop['contact_lists'] );
$prop['email_template'] = absint( $prop['email_template'] );
$contact_form->set_properties( array(
'sendinblue' => $prop,
) );
}