Skip to content

Instantly share code, notes, and snippets.

@frafor1988
frafor1988 / functions.php
Last active Mar 10, 2020
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.
View functions.php
/**
* 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;
}
@frafor1988
frafor1988 / class-carousel.js
Created Jan 28, 2020
Generate a carousel using slick.js by just adding a css class to your page builder
View class-carousel.js