200, 'content' => $content ] ); wp_die(); } /** * Return the Popup for the HASH DOI */ public function getDetails() { if ( isset( $_POST['hash'] ) && wp_verify_nonce( $_POST['nonce'], 'f12_doi_details' ) ) { global $wpdb; $tableName = $wpdb->prefix . 'f12_cf7_doubleoptin'; $hash = sanitize_text_field( $_POST['hash'] ); $OptIn = OptIn::get_by_hash( $hash ); if ( null == $OptIn ) { ob_start(); ?>

200, 'content' => $content ] ); wp_die(); } $formfields = maybe_unserialize( $OptIn->get_content() ); ob_start(); ?>

get_hash() ); ?>

get_id() ); ?>
get_cf_form_id() ); ?>
get_createtime( 'formatted' ) ); ?>
get_ipaddr_register() ); ?>
is_confirmed() ) { echo esc_html( $OptIn->get_updatetime( 'formatted' ) ); } ?>
get_ipaddr_confirmation() ); ?>

$value ): ?> $value ): ?>
200, 'content' => $content ] ); exit; } wp_die( 0 ); } /** * Add the styles for the form */ public function addStyles( $hook ) { if ( $hook == 'tools_page_f12doubleoptin' ) { wp_enqueue_style( 'f12-cf7-doubleoptin-admin', plugins_url( 'assets/admin-style.css', __FILE__ ) ); wp_enqueue_script( 'f12-cf7-doubleoptin-admin', plugins_url( 'assets/f12-cf7-popup.js', __FILE__ ), array( 'jquery' ) ); } } } new Ajax(); }