- Sold between 250 000 and 1 000 000 dollars
- Exclusive Author
- Interviewed on the Envato Notes blog
- Author was Featured
- Item was Featured
- Beta Tester
- Author had a File in an Envato Bundle
- Author had a Free File of the Month
Hi guys,
what it the utility of using add_action with a custom tag to call a custom function?
For example:
add_action(‘my_custom_tag’, ‘my_custom_function’);
Thanks,
Parker
You can start to have some features easy to add in place creating some kind of framework, this way the code is reusable..
For example our Admin has a toolbar and if we include a new php in functions.php we’re adding more features in the toolbar without modifying in the original admin html 
- Bought between 10 and 49 items
- Exclusive Author
- Has been a member for 3-4 years
- Item was Featured
- Referred between 50 and 99 users
- Sold between 100 000 and 250 000 dollars
- Won a Competition
I use do_action() on the framework, and add_action() on the (framework’s) modules/extensions. This way you have a modular framework, easily extendible.
