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 WordPress_Plugin_Template_Settings { | |
| private $dir; | |
| private $file; | |
| private $assets_dir; | |
| private $assets_url; | |
| private $settings_base; |
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 | |
| /* | |
| Plugin Name: WordPress - WP_List_Table - Custom | |
| */ | |
| add_action( 'admin_menu','register_my_custom_menu_page'); | |
| function register_my_custom_menu_page(){ | |
| global $new_menu_page; | |
| // creating admin menu |
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
| /** | |
| * Retrieves the translation of text. | |
| * | |
| * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-i18n/ | |
| */ | |
| import { __ } from '@wordpress/i18n'; | |
| /** | |
| * React hook that is used to mark the block wrapper element. | |
| * It provides all the necessary props like the class 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. | |
| } |
NewerOlder