File: src/helpers/hook.php

Recommend this page to a friend!
  Classes of Nahid Bin Azhar  >  hookr  >  src/helpers/hook.php  >  Download  
File: src/helpers/hook.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: hookr
Register and call action hooks and filters
Author: By
Last change: change to static properties and methods
Date: 2 years ago
Size: 361 bytes
 

Contents

Class file image Download
<?php

use Nahid\Hookr\Facades\Hook;


if (!
function_exists('hook_action')) {
    function
hook_action($name, $params = [])
    {
        \
Nahid\Hookr\Hook::action($name, $params);
    }
}

if (!
function_exists('hook_filter')) {
    function
hook_filter($name, $data, $params = [])
    {
        return \
Nahid\Hookr\Hook::filter($name, $data, $params);
    }
}


For more information send a message to info at phpclasses dot org.