A hook is a point in the theme where you can insert anything you want very easily. For example a HTML alert or a Google tag manager.

Available hooks so far:

  • wp_head(); header.php, bS Preloader hooks here
  • wp_body_open(); header.php
  • bs_after_primary(); all page-*.php, single-*php, category-*php, archive-*php and author-*.php
  • wp_footer(); footer.php, bS Cookie Consent hooks here


Just insert this in your child theme funtions.php:

function my_function() {
    echo 'Hello Hook';
add_action('bs_after_primary', 'my_function', 5);

Leave a Comment

To top