Do they know if there is a way to call a Wordpress functions and functions of some plugins thereof, from a different directory it was installed Wordpress, but all on the same server?
Thank you! :)
Do they know if there is a way to call a Wordpress functions and functions of some plugins thereof, from a different directory it was installed Wordpress, but all on the same server?
Thank you! :)
The solution to your problem is this piece of code:
require_once("../../../../wp-load.php");
Keep in mind that not all WP installations have the same folder structure, the example above starts from a folder inside the theme directory, so you might need to add or remove "../".
This is, however, not a very good practice because it overwrites WP core functions.
Also, this question was already asked before many times, for example here.