1. Go to this page and download the library: Download dashifen/wp-handler 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/ */
dashifen / wp-handler example snippets
class AwesomePlugin extends AbstractPluginHandler {
public function initialize (): void {
if (!$this->isInitialized()) {
$this->addAction("init", "startSession");
}
}
protected function startSession (): void {
if (session_status() !== PHP_SESSION_ACTIVE) {
session_start();
}
}
class AwesomeTheme extends AbstractThemeHandler {
public function initialize (): void {
if (!$this->isInitialized()) {
$this->addAction("wp_enqueue_scripts", "enqueueAssets");
}
}
protected function addAssets (): void {
$this->enqueue("//fonts.googleapis.com/css?family=Iceland:400,700|Droid+Sans:400,700|Droid+Serif:400italic,700italic");
$this->enqueue("assets/dashifen.css");
$this->enqueue("assets/dashifen.js");
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.