Skip to content

Instantly share code, notes, and snippets.

{
"name": "HaLa HuLu Collection #1",
"symbol": "HLHL",
"description": "HaLa HuLu HaLa HuLu HaLa HuLu HaLa HuLu HaLa HuLu HaLa HuLu HaLa HuLu HaLa HuLu HaLa HuLu",
"seller_fee_basis_points": 1000,
"image": "https://images.unsplash.com/photo-1495615080073-6b89c9839ce0?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=500&q=80",
"animation_url": null,
"external_url": "https://www.youtube.com/",
"edition": 1,
"attributes": [
<?php
// Purge cache for new booking
add_filter('woocommerce_new_booking', 'new_booking') ;
function new_booking( $id ) {
$post_id = url_to_postid( $_SERVER['REQUEST_URI'] ) ;
LiteSpeed_Cache_API::purge_post($post_id) ;
}
// Purge cache for cancel booking on cart
add_action( 'woocommerce_remove_cart_item', 'ss_cart_updated', 10, 2 );
<?php
// Purge cache for new booking
add_filter('woocommerce_new_booking', 'new_booking') ;
function new_booking( $id ) {
$post_id = url_to_postid( $_SERVER['REQUEST_URI'] ) ;
LiteSpeed_Cache_API::purge_post($post_id) ;
}
// Purge cache for cancel booking on cart
add_action( 'woocommerce_remove_cart_item', 'ss_cart_updated', 10, 2 );
<?php
/**
* The Third Party integration with the bbPress plugin.
*
* @since 2.9.8.8
* @package LiteSpeed_Cache
* @subpackage LiteSpeed_Cache/thirdparty
* @author LiteSpeed Technologies <[email protected]>
*/
<?php
/**
* The esi class.
*
* This is used to define all esi related functions.
*
* @since 1.1.3
* @since 1.5 Moved into /inc
* @package LiteSpeed_Cache
* @subpackage LiteSpeed_Cache/inc
<?php
/**
* The optimize4 class.
*
* @since 1.9
* @package LiteSpeed_Cache
* @subpackage LiteSpeed_Cache/inc
* @author LiteSpeed Technologies <[email protected]>
*/
<?php
$curl = curl_init();
curl_setopt ($curl, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt ($curl, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.cloudflare.com/client/v4/zones?status=active&match=all",
CURLOPT_RETURNTRANSFER => true,
add_action('litespeed_esi_shortcode-vc_posts_slider', 'enqueue_vc_assets');
add_action('litespeed_esi_shortcode-vc_media_grid', 'enqueue_vc_assets');
function enqueue_vc_assets() {
error_log('enqueue_vc_assets');
if (function_exists('vc_asset_url')) {
wp_register_style( 'flexslider', vc_asset_url( 'lib/bower/flexslider/flexslider.min.css' ), array(), WPB_VC_VERSION );
wp_register_style( 'vc_pageable_owl-carousel-css', vc_asset_url( 'lib/owl-carousel2-dist/assets/owl.min.css' ), array(), WPB_VC_VERSION );
wp_register_style( 'animate-css', vc_asset_url( 'lib/bower/animate-css/animate.min.css' ), array(), WPB_VC_VERSION );
wp_register_style( 'prettyphoto', vc_asset_url( 'lib/prettyphoto/css/prettyPhoto.min.css' ), array(), WPB_VC_VERSION );
const critical = require('critical');
function generateCCSS(inputURL) {
const is_mobile = false;
var ccss_options = {
src: inputURL,
ignore: {
atrule: ['@font-face', '@import'],
},
<?php
/**
* The admin settings handler of the plugin.
*
*
* @since 1.1.0
* @package LiteSpeed_Cache
* @subpackage LiteSpeed_Cache/admin
* @author LiteSpeed Technologies <[email protected]>
*/