mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-06 09:20:28 +08:00
merge with branch01
This commit is contained in:
parent
dc242ce965
commit
83c5d16cb8
6 changed files with 1311 additions and 429 deletions
|
@ -1281,8 +1281,9 @@ class MainWP_Helper {
|
|||
* Credit to the : wp-filters-extras
|
||||
*/
|
||||
|
||||
function remove_filters_with_method_name( $hook_name = '', $method_name = '', $priority = 0 ) {
|
||||
global $wp_filter;
|
||||
static function remove_filters_with_method_name( $hook_name = '', $method_name = '', $priority = 0 ) {
|
||||
|
||||
global $wp_filter;
|
||||
// Take only filters on right hook name and priority
|
||||
if ( ! isset( $wp_filter[ $hook_name ][ $priority ] ) || ! is_array( $wp_filter[ $hook_name ][ $priority ] ) ) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue