Howdy folks,
I’m working on a site I inherited that is a modified version of Sage 9 that is set up to run on WordPress.com VIP GO. In order to run on VIP, we can’t use Bedrock, and have to adhere to their strict WordPress file structure. All of the typical WordPress template functions (i.e. get_template_directory().) for returning theme paths are injecting /app/ in the path; i.e. https://example.com/app/wp-content/themes/sage/resources/assets/scripts/script.js.
Is there any way to remove this? I’d rather not hardcode the whole path.
I combed through the Roots functions in the vendor directory but what is in there is a little beyond my skill set.
AFAIK there’s nothing in base Sage that would do this; app for your theme, plugins, etc, is a Bedrock convention, and Sage is intended to be agnostic in that regard.