Magento Expert Forum - Improve your Magento experience
-
Junior Member
What is hooks and types of hooks in wordpress?Where it used?
Hooks are provided by WordPress to allow your plugin to ‘hook into’ WordPress; that is, to call functions in your plugin at specific times, and thereby set your plugin in motion. There are two types of hooks used in WordPress are Actions and Filters.
1)Actions Run During a Typical Request.for example A developer may want to add code to the footer of a Theme. This could be accomplished by writing new function, then Hooking it to the wp_footer Action.
has_action()
add_action()
do_action()
do_action_ref_array()
did_action()
remove_action()
remove_all_actions()
2)Filters are the hooks that WordPress launches to modify text of various types before adding it to the database or sending it to the browser screen.
has_filter()
add_filter()
apply_filters()
apply_filters_ref_array()
current_filter()
remove_filter()
remove_all_filters()
View more threads in the same category:
- counterfeit deutsch , Falschgeld kaufen WhatsApp +4915212508422 Fake Banknoten kaufen
- buy real and fake passports (https://legitcleandocs.com)drivers license, residence pe
- Falschgeld kaufen , counterfeit deutsch WhatsApp +4915212508422 Fake Banknoten ka
- Samsung MX-HS8500 Reparar No Funciona
- https://counterfeitdeutsch.de/falsch...tift-rossmann/ Counterfeit deutsch, Falschgel
- Falschgeld kaufen , counterfeit deutsch WhatsApp +4915212508422 Fake Banknoten ka
- BUY UNDETECTABLE GRADE A+ COUNTERFEIT BANKNOTE(https://legitcleandocs.com)passports,
- counterfeit deutsch , Falschgeld kaufen WhatsApp +4915212508422 Fake Banknoten kauf
- buy biometric passports(https://legitcleandocs.com)drivers license, visa, id card
- counterfeit deutsch , Falschgeld kaufen WhatsApp +4915212508422 Fake Banknoten kaufen
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks