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

greenlet_entry_content

do_action( ‘greenlet_entry_content’ )

Fires after greenlet_before_entry_content action and before greenlet_after_entry_content action.

Description

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

Example Usage:

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

add_action( 'greenlet_entry_content', 'mytheme_entry_content' );

Notes

Registered actions in Greenlet Theme:

greenlet_do_entry_content in library/frontend/main-structure.php
greenlet_do_entry_content renders the Article Entry Content.

Remove Entry Content

Entry Content rendering can be completely removed with:

function mytheme_remove_content() {
	remove_action( 'greenlet_entry_content', 'greenlet_do_entry_content' );
}
add_action( 'greenlet_init', 'mytheme_remove_content', 20 );