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
| <style> | |
| body #load { | |
| display: block; | |
| height: 100%; | |
| overflow: hidden; | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| z-index: 9901; |
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
| $contactApi = FluentCrmApi('contacts'); | |
| $listId = [1]; // ID of the list to pull contacts from | |
| $ListContacts = $contactApi->getInstance() | |
| ->filterByLists($listId) | |
| ->get(); | |
| function getRandomEmail($contactsObject) { | |
| // Get the items array from the object using a loop | |
| $items = []; | |
| foreach ($contactsObject as $contact) { |
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
| (function ($) { | |
| jQuery(window).on('elementor/frontend/init', function() { | |
| if (elementorModules && elementorModules.frontend) { | |
| class Custom_Steps_Top extends elementorModules.frontend.handlers.Base { | |
| getDefaultSettings() { | |
| return { | |
| selectors: { | |
| buttons: '.e-form__buttons', | |
| form: '.elementor-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 | |
| # composer require aws/aws-sdk-php | |
| use Aws\SesV2\SesV2Client; | |
| require 'vendor/autoload.php'; | |
| define('AWS_ACCESS_KEY_ID', ''); | |
| define('AWS_SECRET_ACCESS_KEY', ''); | |
| $client = new SesV2Client([ |
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 taxonomy to pages | |
| */ | |
| function bnn_add_pages_tax() { | |
| register_taxonomy( | |
| 'page_category', | |
| 'page', | |
| array( | |
| 'label' => __( 'Categories' ), | |
| 'rewrite' => array( 'slug' => 'page-category' ), |
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
| -- Step 1: Create a table backup so that you won't have to restore the whole DB if something goes goofy | |
| CREATE TABLE wp_options_bak LIKE wp_options; | |
| INSERT INTO wp_options_bak SELECT * FROM wp_options; | |
| -- Step 2: Export data in the existing order, ordered by option_id | |
| CREATE TABLE wp_options_tmp AS | |
| SELECT option_name, option_value, autoload | |
| FROM wp_options | |
| ORDER BY option_id; |
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
| .iconbox-1 .elementor-icon {position: relative;} | |
| .iconbox-1 .elementor-icon::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: linear-gradient(to bottom right, #fff, #ff09ab); |
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
| document.addEventListener('DOMContentLoaded', function () { | |
| const fileInput = document.querySelector('input[type="file"]'); | |
| const previewContainer = document.createElement('div'); | |
| fileInput.insertAdjacentElement('afterend', previewContainer); | |
| fileInput.addEventListener('change', function (e) { | |
| const file = e.target.files[0]; | |
| if (file) { |
OlderNewer