BuddyDev

Search

Description

This hook is called before any MediaPress javascript file is registered for loading. It can be used to selectively disable loading of JavaScript files from MediaPress.

Parameters

The only parameter passed is a boolean. The value controls whether to load js files or not.

Returns

true if loading is allowed, false to prevent loading.

Usage

where “function_name” is the name of function to be called.

Example

Source

mediapress/assets/script-loader.php