Is it OK to include files using ABSPATH?
get_home_path() only works when WP admin scripts are loaded. ABSPATH is defined in wp-config.php so works anytime after the config file is loaded, so it should be totally fine for your use. It is set to the dirname(__FILE__) + trailing slash of wp-load.php (same location as e.g. wp-config.php). dirname here returns the absolute path where … Read more