PHP code example of redbox / hooks
1. Go to this page and download the library: Download redbox/hooks 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/ */
redbox / hooks example snippets
namespace Sandbox\Demos;
use Sandbox\Filters;
function func_first($text = '')
{
return '!!' . $text;
}
Filters::addFilter('prepend_at', 'Sandbox\Demos\func_first', 0);