PHP code example of lifterlms / lifterlms-blocks
1. Go to this page and download the library: Download lifterlms/lifterlms-blocks 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/ */
lifterlms / lifterlms-blocks example snippets
// add_action( 'wp_head', 'add_live_reload' ); // Auto-reload frontend.
// add_action( 'admin_head', 'add_live_reload' ); // Auto-reload admin panel.
function add_live_reload() {
echo '<script src="http://localhost:35729/livereload.js"></script>';
}