Skip to content

tobono/acorn-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Acorn Hook

A package for Acorn or Sage 10 based projects that wraps WordPress Hook API.

Installation

Install via composer:

composer require tobono/acorn-hook

Usage

Example

//...
    use Tobono\Hook\Facades\Action;
    use Tobono\Hook\Facades\Filter;
    
    // do_action, do_action_ref_array
    Action::dispatch('orderPlaced', $order);
    
    // apply_filters, apply_filters_ref_array
    $postTitle = Filter::dispatch('the_title', $postTitle, $postId);

//...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages