Do not cache events

/** * Force no-cache via HTTP headers. */ function my_no_cache_headers() { // Use WordPress core helper to set typical no-cache headers: nocache_headers(); // Or you could manually set them if needed: // header( ‘Cache-Control: no-store, no-cache, must-revalidate, max-age=0’ ); //…Continue reading

VGNummer-database-fetch-function-PHP

add_action(‘wp_ajax_fetch_vg_data’, ‘fetch_vg_data’); add_action(‘wp_ajax_nopriv_fetch_vg_data’, ‘fetch_vg_data’); function fetch_vg_data() { $vg_nummer = sanitize_text_field($_POST[‘test’]); // Update to match the URL parameter global $wpdb; $result = $wpdb->get_row( $wpdb->prepare(“SELECT `email`, `inkontakt_id`, `link_test`, `new_link_test` , `new_link_test_2` FROM vg_nummern WHERE `vg_nummer` = %s”, $vg_nummer) ); if ($result) {…Continue reading

Changing Multiple Properties on Store Credit Accordion Checkout Page

add_filter( ‘acfw_funnelkit_store_credit_field_labels’, function( $labels ) { $labels[‘toggle_text’] = ‘Apply Store Credit’; $labels[‘placeholder’] = ‘Enter your store credit code’; $labels[‘balance_text’] = ‘%s Your Available Credit:’; $labels[‘instructions’] = ‘Use your store credit to get discounts on your purchase.’; return $labels; });Continue reading

Change “Email” On Donation Form

add_filter( ‘charitable_default_donation_fields’, ‘charitable_change_default_donation_fields’, 10, 1); function charitable_change_default_donation_fields( $defaults ) { $defaults[’email’][‘donation_form’][‘label’] = ‘Please Provide Email’; return $defaults; }Continue reading