I tried to get categories directly from phpmyadmin, but i can't. then i tried to create this php scrip in public_html
include "wp-includes/category-template.php";
$args = array(
'hide_empty' => 0,
'pad_counts' => true
);
$categories = get_categories( $args );
foreach($categories as $category) {
if($category->count == 0) {
echo $category->name."<br />";
} else {
// do nothing
}
}
?>
but it's return Fatal error: Call to undefined function get_categories() in /mnt/env/*****/development/public_html/test.php on line 9