'blank', 'newsletter_en' => 'newsletter_en', 'newsletter_en_2' => 'newsletter_en_2', 'newsletter_en_3' => 'newsletter_en_3', ]; try { $container = \Forge12\DoubleOptIn\Container\Container::getInstance(); $integration = $container->get( \Forge12\DoubleOptIn\EmailTemplates\EmailTemplateIntegration::class ); $custom = $integration->getCustomTemplates(); foreach ( $custom as $template ) { $templateOptions[ 'custom_' . $template['id'] ] = $template['title'] . ' (' . __( 'Custom', 'double-opt-in' ) . ')'; } } catch ( \Exception $e ) { // Ignore if custom templates not available } // Get categories $atts = [ 'perPage' => -1, 'orderBy' => 'name', 'order' => 'ASC', ]; $categories = Category::get_list( $atts, $numberOfPages ); ?>

>

' . esc_html__( 'Please select', 'double-opt-in' ) . ''; foreach ( $categories as $category ) { $selected = ( $category->get_id() == $metadata['category'] ) ? 'selected="selected"' : ''; $categoryOptions .= ''; } ?>
__( 'Disabled', 'double-opt-in' ) ], $tags ); $conditionList = new HTMLSelect( $id . '[conditions]', $conditionOptions, [ 'id' => [ $id . '-conditions' ], 'class' => [ 'large-text', 'code' ], ] ); $conditionList->setOptionSelectedByKey( $metadata['conditions'] ); echo wp_kses( $conditionList->get(), [ 'select' => [ 'name' => [] ], 'option' => [ 'value' => [], 'selected' => [] ] ] ); ?>
__( 'default', 'double-opt-in' ), 'name' => 'doubleoptin[page]', 'selected' => $metadata['page'], ] ); ?>

__( 'default', 'double-opt-in' ), 'name' => 'doubleoptin[error_page]', 'selected' => $metadata['error_page'] ?? -1, ] ); ?>

$value ) { $tagsList[] = '[' . esc_html( $value ) . ']'; } echo esc_html( implode( ',', array_filter( $tagsList ) ) ); ?>

[ 'f12-cf7-templateloader' ], 'style' => [ 'display:none;' ], ] ); $templateList->setOptionSelectedByKey( $metadata['template'] ); echo wp_kses( $templateList->get(), [ 'select' => [ 'style' => [], 'class' => [], 'name' => [] ], 'option' => [ 'value' => [], 'selected' => [] ] ] ); do_action( 'f12_cf7_doubleoptin_admin_panel_templates', $metadata, $id ); ?>

<a href="[doubleoptinlink]">Confirm the registration</a>

[doubleoptinlink],[doubleoptin_form_url],[doubleoptin_form_subject],[doubleoptin_form_date],[doubleoptin_form_time],[_site_admin_email],

id(), 'cf7' ); $effectiveMapping = array_merge( $autoMapping, $customMapping ); ?>

$config ) : $autoDetected = $autoMapping[ $placeholder ] ?? ''; $customValue = $customMapping[ $placeholder ] ?? ''; ?>
[]
[]