PHP code example of xwp / block-visibility-edge-cache
1. Go to this page and download the library: Download xwp/block-visibility-edge-cache library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
xwp / block-visibility-edge-cache example snippets
add_action( 'xwp_block_visibility_edge_cache_purged', function( $post_id ) {
// Custom purging logic here.
} );