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

Actions

Greenlet comes with various WordPress action hooks. These hooks allow you to run a custom function at a specific point in the theme execution flow.

Example of a Greenlet action hook:
To run my_function after Greenlet finishes rendering all the content you can use the following code in your child theme or custom plugin:

function my_function() {
	echo 'After all the content!';
}

add_action( 'greenlet_after', 'my_function' );

The above code registers my_function to run when Greenlet executes do_action( 'greenlet_after' ); which is located at /footer.php
Learn more about WordPress actions

All the available Greenlet actions are listed below

Articles