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
| RewriteCond %{HTTP_HOST} ^www\. [OR] | |
| RewriteCond %{HTTPS} off | |
| RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ | |
| RewriteRule ^ https://%1%{REQUEST_URI} [NE,L,R=301] |
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 | |
| require( 'wp-load.php' ); // Make sure to set the correct path to wp-load.php file | |
| set_time_limit( 300 ); // Optional, yet might be necessary depending on the server configuration | |
| // BEGIN Configuration | |
| $admin_email = 'email@example.com'; | |
| $max_log_size_bytes = 1024 * 1024; // 1 MB | |
| $log_file = '/home/user/multisite-cron.log'; |
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: Staging URL Finder | |
| * Description: Finds and lists URLs in the database that differ from the site URL | |
| * Version: 0.2.0 | |
| * Author: Nazar Hotsa | |
| */ | |
| // Prevent direct access | |
| if ( ! defined( 'ABSPATH' ) ) { |
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) { |
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
| -- 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
| /** | |
| * 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
| <?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
| (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', | |
| }, |
NewerOlder