Skip to content

Instantly share code, notes, and snippets.

View sitoexpress's full-sized avatar

Sito.Express sitoexpress

View GitHub Profile
@sitoexpress
sitoexpress / functions.php
Last active October 10, 2022 15:01
Using a caching system, Contact Form 7 sends an AJAX request for each form (taking at least 500ms) in order to handle Really Simple Captcha and Quiz Captcha updates. The request is being sent even using Google Recaptcha, which is useless. We're going to disable this unwanted behaviour.
/**
* Disables REFILL function in WPCF7 if Recaptcha is in use
*/
add_action('wp_enqueue_scripts', 'wpcf7_recaptcha_no_refill', 15, 0);
function wpcf7_recaptcha_no_refill() {
$service = WPCF7_RECAPTCHA::get_instance();
if ( ! $service->is_active() ) {
return;
}
@sitoexpress
sitoexpress / class-carousel.js
Created January 28, 2020 17:45
Generate a carousel using slick.js by just adding a css class to your page builder