Ancestor Results

$theyear1 = htmlspecialchars($_REQUEST[‘theyear1’]); $theyear2 = htmlspecialchars($_REQUEST[‘theyear2’]); $thetarget = htmlspecialchars($_REQUEST[‘thetarget’]); /* $theyear1 = $_POST[‘theyear1’]; $theyear2 = $_POST[‘theyear2’]; $thesurname = $_POST[‘thesurname’]; $maiden = $_POST[‘maiden’]; $asurname = $_GET[‘thesurname’]; $thetarget = $_POST[‘thetarget’]; $maiden = $_POST[‘maiden’]; */ echo ‘target = ‘.$thetarget.’‘; echo ‘year1 = ‘.$theyear1.’‘;…Continue reading

testdb mysqli

/* You should enable error reporting for mysqli before attempting to make a connection */ //mysqli_report(MYSQLI_REPORT_ERROR); // //define( ‘DB_USER’, ‘i9065950_wp2’ ); /** Database password */ //define( ‘DB_PASSWORD’, ‘E.SaEj4ol3IAOnlC0ur27′ ); $Host = “localhost”; $User = “i9065950_wp2”; $Password = “E.SaEj4ol3IAOnlC0ur27”; $DBName =…Continue reading

14784 – Training – Seminar – General Information Output

$detailContainer = get_field(‘course_minor_details’); //Set timezone for course start and end dates $dateTimezone = new DateTimeZone(‘Europe/Amsterdam’); //Venues $venueArray = array(); $product = wc_get_product(get_the_ID()); $product_id = get_the_ID(); $variation_ids = $product->get_children(); foreach($variation_ids as &$variation_id) { $variationVenue = get_post_meta( $variation_id, ‘iconic_cffv_15140_venue’, true ); $variationStartDate…Continue reading

Disable Automatic Updates Emails

// Disable auto-update emails. add_filter( ‘auto_core_update_send_email’, ‘__return_false’ ); // Disable auto-update emails for plugins. add_filter( ‘auto_plugin_update_send_email’, ‘__return_false’ ); // Disable auto-update emails for themes. add_filter( ‘auto_theme_update_send_email’, ‘__return_false’ );Continue reading

Remove Prices

/* * Hide the price from notifications * * @link https://wpforms.com/developers/how-to-hide-the-item-price-value-in-the-email-notifications */ function wpf_email_field_value( $value, $field, $form_data, $context) { if ( ’email-html’ === $context ) { // If the form ID is 364 AND the field ID is 19 remove…Continue reading

duplicate sollicit

add_action(‘frm_after_create_entry’, ‘copy_into_my_table’, 20, 2); function copy_into_my_table($entry_id, $form_id){ if($form_id == 17){ //change 4 to the form id of the form to copy global $wpdb; $values = array(‘title’ => $_POST[‘item_meta’][513], ‘user’ => $_POST[‘item_meta’][517], ‘OT’ => $_POST[‘item_meta’][518], ‘comptoir’ => $_POST[‘item_meta’][523], ‘date’ => $_POST[‘item_meta’][527],…Continue reading