PHP code example of lumenpress / helper
1. Go to this page and download the library: Download lumenpress/helper 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/ */
lumenpress / helper example snippets
$wp = \LumenPress\Helper::wrap(['wp_', 'wp_get_'], [
]);
$is = \LumenPress\Helper::wrap(['is_', 'wp_is_'], [
'php' => true,
]);
wp_head();
// equals
$wp->head; // execute only once
$wp->head(); // execute every time
wp_is_mobile();
// equals
$is->mobile;
$is->mobile();