1. Home
  2. Docs
  3. Greenlet Hooks
  4. Actions
  5. greenlet_header

greenlet_header

do_action( ‘greenlet_header’ )

Fires after greenlet_before_header and before greenlet_after_header

This action can be used to render any component or perform any actions before the header is rendered by specifying the $priority less than 10 and after the header is rendered by specifying the $priority greater than 10

Example Usage:

function mytheme_do_something() {
	// do_something();
}

add_action( 'greenlet_header', 'mytheme_do_something' );

Registered actions in Greenlet Theme:
greenlet_do_header in library/frontend/header-structure.php
greenlet_do_header renders the Site Header.

Topbar rendering can be completely removed with:

function mytheme_remove_header() {
	remove_action( 'greenlet_header', 'greenlet_do_header' );
}
add_action( 'greenlet_init', 'mytheme_remove_header', 20 );