admin管理员组文章数量:1414614
I am getting "Undefined index: hook_suffix"
error in Wordpress while trying to execute the below. Here $class_name
extends MyRegularClass and MyRegularClass extends WP_List_Table
. Please help.
$tab_name = substr($tab_name,strlen($wpdb->prefix));
if (class_exists($tab_name.'_class')){
$class_name = $tab_name.'_class';
$obj = new $class_name();
} else {
$obj = new MyRegularClass($tab_name);
}
Update: Here I am trying to display a table content in a page(in stead of adding that to a menu) using WP List Table. The issue seems to be due to calling display() before it gets a screen.
本文标签: wp list tableUndefined index hooksuffix
版权声明:本文标题:wp list table - Undefined index: hook_suffix 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745152519a2644983.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论