To stop MySQL server use the following command:
sudo service mysql stop
To start MySQL server use the following command:
sudo service mysql start
<?php | |
// There's also a standalone version, no Visual Composer required, purely as a shortcode here https://gist.github.com/Jany-M/d3014a7039c884a8bbd8e8271cfcd982 | |
if( class_exists( 'WPBakeryShortCode' ) && !class_exists( 'vcMUloop' ) ) { | |
class vcMUloop extends WPBakeryShortCode { | |
function __construct() { | |
add_action( 'init', array( $this, 'vc_multisite_mapping' ) ); |
<?php | |
/** | |
* @snippet Add Script @ WooCommerce Thank You Page | |
* @endpoint happydesk.net/checkout/order-received/ (replace with your domain) | |
* @testedwith WooCommerce 5 | |
*/ | |
add_action( 'woocommerce_thankyou', 'happydesk_conversion_tracking_thank_you_page' ); | |
<?php | |
// Copy files from remote server. | |
// https://stackoverflow.com/questions/9843933/copy-file-from-remote-server-or-url | |
$file = 'SOURCE_URL'; | |
$newfile = $_SERVER['DOCUMENT_ROOT'] . '/wp-content/ai1wm-backups/DIRECTORY_FIILE_NAME__WITH_EXTAINSION'; | |
if ( copy ( $file, $newfile ) ) { | |
echo "Copy success!"; | |
} else { |
/* | |
Work Name: Elementor Transparent Header | |
Sticky: TOP | |
Sticky On: All Devices | |
Offset: 0 | |
Effects Offset: 100 | |
Entrance Animation: Default |
sudo apt-get install zip
zip -r zip_file_name.zip folder
Some solution | Stack Overflow.
document.addEventListener("DOMContentLoaded", function(){ | |
let divc = document.querySelectorAll('div[style]'); | |
for (let i = 0, len = divc.length; i < len; i++) { | |
let actdisplay = window.getComputedStyle(divc[i], null).display; | |
let actclear = window.getComputedStyle(divc[i], null).clear; | |
if(actdisplay == 'block' && actclear == 'both') { | |
divc[i].remove(); | |
} | |
} |
// WooCommerce Conversion Pixel Fire On Click "Add To Cart" & "Cart" & "Checkout" by Selected CSS/ID Element. | |
<!-- Global site tag (gtag.js) - Google Ads: TRACKING_iD --> | |
<script async src="https://www.googletagmanager.com/gtag/js?id=TRACKING_iD"></script> | |
<script> | |
window.dataLayer = window.dataLayer || []; | |
function gtag(){dataLayer.push(arguments);} | |
gtag('js', new Date()); | |
gtag('config', 'TRACKING_iD'); |
<?php | |
define( 'WP_USE_THEMES', false ); | |
require( './wp-load.php' ); | |
global $wpdb; | |
$table_name = $wpdb->prefix . 'options'; | |
$table_name = "{$wpdb->prefix}options"; | |
$wpdb->query( $wpdb->prepare( "DELETE FROM `$table_name` WHERE `option_name` like '%litespeed.%' " ) ); |