Skip to content

Latest commit

 

History

History

hooks

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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.init
  • init_callback - called when the core.init function is completed
  • ready - _ 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.


  1. Related Articles
  2. Return to Extending
  3. Themes
  4. Buttons
  5. Filters
  6. Hooks
  7. Table of Contents