gravityflow_enqueue_admin_scripts

Description

The gravityflow_enqueue_admin_scripts action to allow additional scripts to be enqueued when the Gravity Flow  shortcode or block is present on the page.

Parameters

There are no parameters for this action. For context on proper enqueuing scripts, refer to admin_enqueue_scripts

Examples

add_action( 'gravityflow_enqueue_admin_scripts', 'jo_gravityflow_block_scripts', 10, 0 );
function jo_gravityflow_block_scripts( ) {
   //Register and/or enqueue your scripts here
}

Placement

This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.

See also the PHP section in this article: Where Do I Put This Code?