DiviArea.removeFilter(hook, callback)
// Alias:
DiviArea.Hooks.removeFilter(hook, callback)
Removes a previously registered filter hook.
Params
hook
- The hook name.
callback
- The callback to remove. When omitted, all filter-callbacks are removed from the specified hook.
Returns
The function does not return anything.
Examples
// Remove any filter-handles for the "ignore_esc_key" filter.
DiviArea.removeFilter( 'ignore_esc_key' );
// And then add our own, custom handler.
DiviArea.addFilter( 'ignore_esc_key', custom_filter_handler );
Notes
No notes