1. Go to this page and download the library: Download bojaghi/clean-pages 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/ */
bojaghi / clean-pages example snippets
use Bojaghi\CleanPage\CleanPage
new CleanPage([
/* 설정 배열 */
]);
use Bojaghi\CleanPage\CleanPage
new CleanPage('/path/to/configuration');
/**
* Plugin Name: My Plugin
*/
if (!defined('ABSPATH')) {
exit;
}
nfig');
// 권장하지 않는 예
add_action( 'init', function () {
$cleanPage = new Bojaghi\CleanPage\CleanPage('/path/to/config');
});
if (!defined('ABSPATH')) {
exit;
}
return [
[
'name' => 'my-name',
'condition' => function (string $name): bool {},
'template' => function (string $name, mixed $body = null) {},
'before' => function (string $name) {},
'body' => function (string $name) {},
'after' => function (string $name) {},
'login_
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.