Amazon Affiliate Disclosure Bottom
Display an Amazon Affiliate disclosure at the bottom of posts and/or pages.
Add WooCommerce upsells below the add-to-cart button
// add upsells below add-to-cart button add_action( 'woocommerce_single_product_summary', 'woocommerce_upsell_display', 40 );
Google Tag Manager
Google Tag Manager Head
quiz
// setup console.log("running"); let q = 1; const submit = document.getElementById("next-button"); const question = document.getElementById("question"); //…
Filter to change Custom Post Type settings | Quick Event Manager
The plugin uses Custom Post Types for Events. The default setting for the post type is…
Body on Scroll
;(function ($) { $(window).scroll(function() { var scroll = $(window).scrollTop(); if (scroll >= 5) { $("body").addClass("scroll-500"); $(".tm-header").removeClass("uk-blend-difference");…
add 2 nos
function addNumbers() { // Get input values const num1 = parseFloat(document.getElementById('num1').value); const num2 = parseFloat(document.getElementById('num2').value); //…
Fireside Announcement Bar
NEW: 🔥 Fireside Films 🔥 GET TICKETS
game_start
Round: 1/5 Cash: $5000 Automobile Production: 1000 units Industry Level: 5 Start New Game Save Game…
Child Support Calculator
function child_support_calculator_shortcode() { // Enqueue the JavaScript wp_enqueue_script('child-support-calculator', get_template_directory_uri() . '/path-to-your-js-folder/child-support-calculator.js', array('jquery'), '1.0.0', true); ob_start(); include…
fundamentals
Game State Round: 0/10 Cash: $0 Automobile Production: 0 units Industry Level: 0 Start New Game…
Combine shortcodes to have more than one month in Fullworks' Event Manager
This snippet combines 3 shortcodes of qem to list the current month, next month and the…
Remove "p" tags Contact Form 7
Remove tags from the forms in the frontend
expose acf
function expose_acf_to_rest() { register_rest_field('game_state', 'acf', [ 'get_callback' => function($post_arr) { return get_fields($post_arr['id']); }, 'update_callback' => null,…