admin管理员组文章数量:1130349
When I call global $wp_meta_boxes; it returns null.
I'm trying to calling like:
class my_class()
{
public function __construct(){
add_action( 'wp_dashboard_setup' , array( $this , 'my_meta_boxes' ));
}
public function my_meta_boxes(){
global $wp_meta_boxes;
return $wp_meta_boxes;
}
}
The class is working fine, but I cannot make it work.
[EDIT]
To make understand better the issue, my objective is the one actually answered in this question:
- Get List of Registered Meta Boxes and Removing Them.
I need to retrieve metaboxes for specific admin pages. The problem is that the globalis not working for me.
I appreciate any suggestion.
When I call global $wp_meta_boxes; it returns null.
I'm trying to calling like:
class my_class()
{
public function __construct(){
add_action( 'wp_dashboard_setup' , array( $this , 'my_meta_boxes' ));
}
public function my_meta_boxes(){
global $wp_meta_boxes;
return $wp_meta_boxes;
}
}
The class is working fine, but I cannot make it work.
[EDIT]
To make understand better the issue, my objective is the one actually answered in this question:
- Get List of Registered Meta Boxes and Removing Them.
I need to retrieve metaboxes for specific admin pages. The problem is that the globalis not working for me.
I appreciate any suggestion.
本文标签: dashboardglobal wpmetaboxes returns NULL
版权声明:本文标题:dashboard - global $wp_meta_boxes returns NULL 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749193446a2330496.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论