Filter: um_account_scripts_dependencies

apply_filters( 'um_account_scripts_dependencies', $deps ) → {array}

Filters account script dependencies.

Parameters:
Name Type Description
$deps array

JS script dependencies.

Since:
  • 2.1.8
Source:
Returns:

JS script dependencies.

Type
array
Example

Add `wp-util` as a dependencies script.

function um_custom_account_scripts_dependencies( $deps ) {
    $deps[] = 'wp-util';
    return $deps;
}
add_filter( 'um_account_scripts_dependencies', 'um_custom_account_scripts_dependencies' );