Skip to content

Instantly share code, notes, and snippets.

View bencagri's full-sized avatar

Çağrı S. bencagri

View GitHub Profile
@bencagri
bencagri / hook.php
Last active September 2, 2015 09:05
Php Simple Hook
<?php
class hooking{
private $hooks;
function __construct()
{
$this->hooks=array();
}
function add_action($where,$callback,$priority=50)