I was using the following:
get_home_path(); in my functions.php as referenced in the docs – but I get the error:
Call to undefined function get_home_path() in ...
I'd like to include a file using it. I noticed there is also the constant
ABSPATH. Is there any reason I shouldn't just use
ABSPATH as an alternative to
I am using it as so (this is crazy simple) – in my functions.php file at the start of the file I have put:
require_once( ABSPATH . 'vendor/autoload.php' );
If I put:
$path = get_home_path(); require_once( $path . 'vendor/autoload.php' );
That's when it all goes wrong, with the generic error about the function not being available.