How can I call WordPress core functions in external scripts?
I get the solution. To call functions from WordPress from a custom script, you need to import wp-load: require_once(“/path/wp-load.php”); Thats all, I can work fine with those functions. I save my own script in the root of my PHP WordPress and I didn’t need a plugin.