Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/392.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 这个插件php wordpress中的全局类名是什么?_Javascript_Php_Wordpress - Fatal编程技术网

Javascript 这个插件php wordpress中的全局类名是什么?

Javascript 这个插件php wordpress中的全局类名是什么?,javascript,php,wordpress,Javascript,Php,Wordpress,我正试图从这个插件中删除\u filter,就像wordpress引用的那样 global $my_class; remove_filter( 'the_content', array($my_class, 'class_filter_function') ); 在这段代码中,有一个'add_filter('bp_core_fetch_avatar',array($this,'set_buddypress_avatar'),10,1);'我想删除过滤器,这里的大问题是,$this?我无法全局$

我正试图
从这个插件中删除\u filter
,就像wordpress引用的那样

global $my_class;
remove_filter( 'the_content', array($my_class, 'class_filter_function') );
在这段代码中,有一个
'add_filter('bp_core_fetch_avatar',array($this,'set_buddypress_avatar'),10,1);'
我想删除过滤器,这里的大问题是,
$this
?我无法全局
$this
,那么以下代码中的
$my_class
是什么

我试过
global$BuddyPress\u First\u Letter\u Avatar
global BuddyPress\u First\u Letter\u Avata
, 这给了我错误


你试过这样的东西吗

remove_filter( 'the_content', array('BuddyPress_First_Letter_Avatar ', 'class_filter_function') ); 

«我正试图
从此插件中删除\u过滤器
»。你到底想达到什么目的?试图删除这个添加过滤器('bp_core_fetch_avatar',数组('set_buddypress_avatar'),10,1);在这个插件中,如果你这样做会发生什么?