1. Go to this page and download the library: Download szepeviktor/sentencepress 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/ */
// Instead of add_action('plugins_loaded', [$this, 'init'], 0, 20);
class Plugin
{
use SzepeViktor\SentencePress\HookAnnotation;
public function __construct()
{
$this->hookMethods();
}
/**
* @hook plugins_loaded 20
*/
public function init(): void
{
doSomething();
}
}
// Instead of unctions.php will be loaded and pingbackHeader called when wp_head hook is fired
class Template
{
use SzepeViktor\SentencePress\HookProxy;
public function __construct()
{
$this->lazyHookFunction(
'wp_head',
__NAMESPACE__ . '\\TemplateFunction\\pingbackHeader',
10,
0,
__DIR__ . '/inc/template-functions.php'
);
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.