All Topics
Queryselector problem at Users admin page
Hi, I have a custom user meta key that I wanted to display at Users page.
But this simple code below doesn’t work for a Custom Column at Users Page, with the following error:
function display_test($value, $id, $column){
if ( $column instanceof ACP\Column\CustomField ) {
$meta_key = $column->get_meta_key(); // This gets the Custom Field key
if ( 'columnTEST' == $meta_key ) {
$value = '<span>test</span>';
}
}
return $value;
}
Uncaught TypeError: Cannot read property 'querySelector' of null
You must be logged in to reply to this topic.