This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Change upload folder based on Elementor Form ID | |
| * | |
| * @param $path | |
| * @return string | |
| */ | |
| function zpd_change_elementor_form_upload_path_multi_form( $path ){ | |
| if( $_POST[ 'action'] === 'elementor_pro_forms_send_form'){ | |
| //The folder name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Create new user from Elementor form | |
| */ | |
| add_action( 'elementor_pro/forms/new_record', 'gl_elementor_form_create_new_user', 99, 2 ); | |
| function gl_elementor_form_create_new_user( $record, $ajax_handler ) { | |
| $form_id = $record->get_form_settings( 'id' ); | |
| if ( 'register_form' !== $form_id ) { | |
| return; | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Create new user from Elementor form | |
| */ | |
| add_action( 'elementor_pro/forms/new_record', 'gl_elementor_form_create_new_user', 99, 2 ); | |
| function gl_elementor_form_create_new_user( $record, $ajax_handler ) { | |
| $form_id = $record->get_form_settings( 'id' ); | |
| if ( 'register_form' !== $form_id ) { | |
| return; | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * | |
| * A simple integration of hCaptcha 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: | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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: | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_action( 'elementor_pro/forms/validation', function( $form_record, $ajax_handler ) { | |
| if ( 'Test Form 1' !== $form_record->get_form_settings( 'form_name' ) ) { | |
| return; | |
| } | |
| $fields = $form_record->get('fields'); | |
| $email = $fields['email']['value']; | |
| if ( email_exists( $email ) ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * List Table API: WP_Posts_List_Table class | |
| * | |
| * @package WordPress | |
| * @subpackage Administration | |
| * @since 3.1.0 | |
| */ | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Theme functions and definitions | |
| * | |
| * @package HelloElementor | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; // Exit if accessed directly. | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; | |
| } | |
| class Homeo_Elementor_RealEstate_Search_Form extends Elementor\Widget_Base { | |
| public function get_name() { | |
| return 'apus_element_realestate_search_form'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Adds a custom loading overlay for Elementor forms | |
| function custom_elementor_loading_overlay() { | |
| // Only execute on front-end (not in admin panel) | |
| if (!is_admin()) { | |
| // Enqueue jQuery | |
| wp_enqueue_script('jquery'); | |
| ?> | |
| <style type="text/css"> | |
| /* Main overlay styles remain unchanged */ |
NewerOlder