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 5.9.8
function wpcf7_sendinblue_save_contact_form( $contact_form, $args, $context ) { $service = WPCF7_Sendinblue::get_instance(); if ( ! $service->is_active() ) { return; } $prop = (array) ( $_POST['wpcf7-sendinblue'] ?? array() ); $prop = wp_parse_args( $prop, 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, ) ); }