PHP code example of discophp / wordpress
1. Go to this page and download the library: Download discophp/wordpress 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/ */
discophp / wordpress example snippets
Disco::make('WP',function(){
return new Disco\addon\Wordpress\classes\WordPress;
});
Router::filter(WP::path().'/{*}')->to('WordPress');
$data = WP::get([option],[vars]);