Webhook smart tags

{ “smart_tags”: { “region”: “Gujarat”, “state”: “Gujarat”, “province”: “Gujarat”, “territory”: “Gujarat”, “region_code”: “GJ”, “country”: “India”, “country_code”: “IN”, “city”: “Vadodara”, “latitude”: 22.3008, “longitude”: 73.2043, “zip”: “390004”, “postal_code”: “390004”, “day”: “Friday”, “month”: “May”, “year”: “2024”, “date”: “May 31, 2024”, “page_url”: “https://giztale.com/”, “referer_url”:…Continue reading

Add Radio Boxes To Donation Form

/** * Add a collection of radio selections to the donation form. * * This snippet only works in Charitable 1.5 or above. * */ function wpchar_charitable_register_new_radios_field() { if ( ! class_exists(“Charitable_Donation_Field” ) ) { return; }; /** * Define…Continue reading

“Lazy Load Images”.( For Dom Size)

document.addEventListener(“DOMContentLoaded”, function() { const lazyLoadImages = () => { const images = document.querySelectorAll(‘img.lazy’); const observer = new IntersectionObserver((entries, observer) => { entries.forEach(entry => { if (entry.isIntersecting) { const img = entry.target; img.src = img.dataset.src; img.classList.remove(‘lazy’); observer.unobserve(img); } }); }); images.forEach(img…Continue reading

Remove HealthAndBeautyBusiness Schema

add_filter(‘aioseo_schema_output’, ‘aioseo_remove_health_and_beauty_business_schema’); function aioseo_remove_health_and_beauty_business_schema($graphs) { foreach ($graphs as $index => $value) { if (isset($value[‘@type’]) && $value[‘@type’] === ‘HealthAndBeautyBusiness’) { unset($graphs[$index]); } } return $graphs; }Continue reading

How to Display a List of WPForms Using a Shortcode

/** * Create shortcode to display all form titles in a list. * * Basic usage: [wpforms_all_forms] * * @link https://wpforms.com/developers/how-to-display-a-list-of-wpforms-using-a-shortcode/ */ add_shortcode(‘wpforms_all_forms’, function() { $args = [ ‘post_type’ => ‘wpforms’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => -1, ]; $posts =…Continue reading