You appear to be a bot. Output may be restricted
Description
Restore a filter ( WordPress 4.7 )
Currently not used. Herb 2016/11/19
Usage
bw_restore_filter( $tag, $function_to_restore, $priority );
Parameters
- $tag
- ( string ) required – the filter name e.g. 'the_content'
- $function_to_restore
- ( string ) required – the name of the filter function to be restored
- $priority
- ( integer ) optional default: 10 – the priority of the function. This has to match
Returns
void
Source
File name: oik/includes/oik-filters.inc
Lines:
1 to 11 of 11
function bw_restore_filter( $tag, $function_to_restore, $priority= 10 ) { global $wp_filter; $function_key = _wp_filter_build_unique_id( $tag, $function_to_restore, false ); $r = isset( $wp_filter[$tag][$priority][$function_key]['replaced'] ); if ( $r ) { $wp_hook_object = $wp_filter[$tag]; $wp_hook_object->callbacks[$priority][$function_key]['function'] = $wp_hook_object->callbacks[$priority][$function_key]['replaced']; //bw_trace2( $wp_hook_object, "arrgh" ); } }