Skip to content

Instantly share code, notes, and snippets.

View djaysan's full-sized avatar
💭
I may be slow to respond.

DJaySAN djaysan

💭
I may be slow to respond.
View GitHub Profile
@DavePodosyan
DavePodosyan / elementor-form-turnstile-handler.php
Last active April 30, 2025 09:31
Cloudflare Turnstile Integration for Elementor Forms
<?php
/**
*
* A simple integration of Cloudflare Turnstile with Elementor Forms, following Elementor’s pattern for reCAPTCHA.
*
* Instructions:
* 1. Add this file to your WordPress theme directory.
* 2. Include the file in your theme's `functions.php` file using:
*
@OmorFaruque-65
OmorFaruque-65 / usa state list
Created February 13, 2021 15:35
usa state list for form elementor
State
Alabama|AL
Alaska|AK
Arizona|AZ
Arkansas|AR
California|CA
Colorado|CO
Connecticut|CT
Delaware|DE
Florida|FL
@vielhuber
vielhuber / functions.php
Created December 29, 2017 21:16
#wordpress polylang disable language in frontend
<?php
if( !is_admin() && $pagenow != 'wp-login.php' && pll_current_language() == 'en' )
{
wp_redirect(site_url().'/de/');
die();
}