do_action hook in base.php

Hi,

I would like to know why add this piece of code do_action(‘get_header’) if there is

if (current_theme_supports('bootstrap-top-navbar')) {
      get_template_part('templates/header-top-navbar');
    } else {
      get_template_part('templates/header');
    }
1 Like

See https://github.com/roots/roots/issues/639 - since we don’t use get_header, we have it in there to avoid issues with plugins

2 Likes

Understood! Thank you.