wsf_enqueue_script_in_footer

Description

The wsf_enqueue_script_in_footer filter hook can be used to override the Enqueue in Footer setting in Global Settings.

Usage

add_filter( 'wsf_enqueue_script_in_footer', 'my_hook_function', 10, 1 );

Parameters

  1. $in_footer Boolean
    If true, enqueued JavaScript will be added in the footer as opposed to the head of the website.
    Default value: Per global setting

Example

// Callback function for the wsf_enqueue_script_in_footer filter hook
function my_hook_function( $in_footer ) {
	
	// Your code here ...

	// Return value
	return $in_footer;
}

// Add a callback function for the wsf_enqueue_script_in_footer filter hook
add_filter( 'wsf_enqueue_script_in_footer', 'my_hook_function', 10, 1 );

Source File

This hook can be found in: <plugin root>/includes/class-ws-form-common.php