PHP code example of voceconnect / voce-widget-cache
1. Go to this page and download the library: Download voceconnect/voce-widget-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/ */
voceconnect / voce-widget-cache example snippets
if( ! class_exists( 'Voce_Widget_Cache' ) ) {
$widget_cache = Voce_Widget_Cache::GetInstance();
$widget_cache->cache_widget( 'Archive_Links_Widget', array( 'save_post' ) );
$widget_cache->cache_widget( 'WP_Widget_Recent_Posts' );