Hooks
Hooks allow you to insert new events into the core processes without needing to edit core files.
The full list of available hooks where $.fn.blockstrap.core.apply_actions
is used include:
init
- called at the start of $.fn.blockstrap.core.initinit_callback
- called when the core.init function is completedready
- called at the end of $.fn.blockstrap.core.ready
An example of how to add an action to init
can be seen below:
var important_info = 'something-needed-later';
$.fn.blockstrap.core.add_action(
'init', // the hook to use
'example_action', // a unique identifier
'theme', // the module to use
'example', // the function in module to use
important_info // information needed later?
);
More information is available regarding $.fn.blockstrap.core.add_action
.
- Related Articles
- Return to Extending
- Themes
- Buttons
- Filters
- Hooks
- Table of Contents