Skip to content

Instantly share code, notes, and snippets.

<?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,
<?php
/**
* The optimize4 class.
*
* @since 1.9
* @package LiteSpeed_Cache
* @subpackage LiteSpeed_Cache/inc
* @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 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
// 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 );
{
"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": [