prop( 'sendinblue' ) : array(), array( 'enable_contact_list' => false, 'contact_lists' => array(), 'enable_transactional_email' => false, 'email_template' => 0, ) ); wpcf7_sendinblue_editor_lists( $prop['contact_lists'] ); wp_die(); } add_action( 'wp_ajax_wpcf7-sendinblue-email-template', 'wpcf7_ajax_sendinblue_email_template', 10, 0 ); /** * Ajax action to update the email templates in the Brevo editor panel. */ function wpcf7_ajax_sendinblue_email_template() { $contact_form = wpcf7_contact_form( wpcf7_superglobal_get( 'id' ) ); $prop = wp_parse_args( $contact_form ? $contact_form->prop( 'sendinblue' ) : array(), array( 'enable_contact_list' => false, 'contact_lists' => array(), 'enable_transactional_email' => false, 'email_template' => 0, ) ); wpcf7_sendinblue_editor_templates( $prop['email_template'] ); wp_die(); }