admin管理员组文章数量:1122846
I used this to get User list table columns Name.
add_filter( 'manage_users_columns', array($this , 'new_modify_user_table'));
public function new_modify_user_table( $column ) {
$column // columns Name array , Looking for this array out side Users page
}
But manage_users_columns hook is not fired outside "/wp-admin/users.php", that mean It work When I am on page "/wp-admin/users.php" , but it did not Work On outside users page.
so, How do I get User table Columns Name in My plugin? or on the outside "/wp-admin/users.php"
thankyou.
I used this to get User list table columns Name.
add_filter( 'manage_users_columns', array($this , 'new_modify_user_table'));
public function new_modify_user_table( $column ) {
$column // columns Name array , Looking for this array out side Users page
}
But manage_users_columns hook is not fired outside "/wp-admin/users.php", that mean It work When I am on page "/wp-admin/users.php" , but it did not Work On outside users page.
so, How do I get User table Columns Name in My plugin? or on the outside "/wp-admin/users.php"
thankyou.
Share Improve this question edited Jul 26, 2018 at 6:10 javmah asked Jul 26, 2018 at 5:35 javmahjavmah 615 bronze badges 8 | Show 3 more comments1 Answer
Reset to default 0Yep! solved it.
require_once( ABSPATH . 'wp-admin/includes/class-wp-users-list-table.php' );
$hmm = new WP_Users_List_Table( array( 'screen' => 'users' ) );
$hmm->get_column_info()[0]
本文标签: how to get WordPress admin user table columns name in my plugin
版权声明:本文标题:how to get WordPress admin user table columns name in my plugin 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736289100a1928234.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
manage_users_columns
and store the list in cache. – mmm Commented Jul 26, 2018 at 8:22