1. Go to this page and download the library: Download frc/wp-base 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/ */
add_theme_support('frc-base-theme-disable-rest-api', [
'disabled' => ['/'], // Disable all routes
// or
'disabled' => ['users', 'posts'], // Disable user & post routes
'allowed' => ['posts'], // If all routes has been disabled but allow 'posts' route
// super admin / admins have access to all routes always, other logged in users can be limited as follows
'authenticated' => [
'disabled' => ['/'],
'allowed' => ['posts'],
]
]);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.