1. What does the hook do, what is the benefit?

A hook is a point in the parent theme where you can insert anything you want in your child theme very easily. We have just added a hook after the primary div called bs_after_primary, thanks to this hook you can add in your child anything you want.

2. Usage and code snippets

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

Cookies help us deliver our services. By using our services, you agree to our use of cookies. More Information