add_filter( ‘woocommerce_product_add_to_cart_text’, ‘fmd_change_select_options_button_text’, 10, 2 ); if(!function_exists(“fmd_change_select_options_button_text”)) { function fmd_change_select_options_button_text( $label, $product ) { if ( $product->is_type( ‘variable’ ) ) { return ‘Comprar ahora’; } return $label; } }Continue reading
/** * Wrap the thumbnail in a link to the post. * Only use this if your theme doesn’t already wrap thumbnails in a link. * * @param string $html The thumbnail HTML to wrap in an anchor. * @param…Continue reading
— phpMyAdmin SQL Dump — version 5.0.2 — https://www.phpmyadmin.net/ — — Host: localhost — Generation Time: Nov 20, 2021 at 08:35 AM — Server version: 10.4.13-MariaDB — PHP Version: 7.2.32 SET SQL_MODE = “NO_AUTO_VALUE_ON_ZERO”; START TRANSACTION; SET time_zone = “+00:00”;…Continue reading
// Add products to the cart function add_products_to_cart() { // Define the products to be added to the cart $products = array( array( ‘product_id’ => 20070, ‘quantity’ => 1 ), array( ‘product_id’ => 19968, ‘quantity’ => 1 ) ); //…Continue reading
add_filter( ‘wpcode_smart_tags’, function( $tags ) { $tags[‘custom’] = array( ‘label’ => ‘Custom’, ‘tags’ => array( ‘custom_field_tag’ => array( ‘label’ => ‘Custom Field Tag’, ‘function’ => ‘wpcode_custom_field_tag’, ), ), ); return $tags; } ); function wpcode_custom_field_tag() { // Replace custom_field_tag below…Continue reading
$indextls = htmlspecialchars($_REQUEST[‘indextls’]); //echo ‘indextls = ‘.$indextls; $Host = “localhost”; $User = “i9065950_wp2”; $Password = “E.SaEj4ol3IAOnlC0ur27”; $DBName = “i9065950_wp2”; $Table = “cemdata”; //error_reporting(0); //echo ‘Add additional information for this person‘; $query = “SELECT * from cemdata where indextls = ‘$indextls’”;…Continue reading
$theyear1 = htmlspecialchars($_REQUEST[‘theyear1’]); $theyear2 = htmlspecialchars($_REQUEST[‘theyear2’]); $thesurname = htmlspecialchars($_REQUEST[‘thesurname’]); $indextls = htmlspecialchars($_REQUEST[‘indextls’]); $maiden = htmlspecialchars($_REQUEST[‘maiden’]); $thetarget = htmlspecialchars($_REQUEST[‘thetarget’]); $shortname = htmlspecialchars($_REQUEST[‘thesurname’]); //echo $thesurname.’‘; //echo $thetarget.’‘; $Host = “localhost”; $User = “i9065950_wp2”; $Password = “E.SaEj4ol3IAOnlC0ur27”; $DBName = “i9065950_wp2”; $Table = “cemdata”;…Continue reading
$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
/* 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
$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