After a long search, I finally found the error. It is necessary to use
require "/path/to/wordpress/wp-load.php";
to enable wordpress functions in scripts.
After a long search, I finally found the error. It is necessary to use
require "/path/to/wordpress/wp-load.php";
to enable wordpress functions in scripts.