You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried setting up custom plugins, uploads & themes directory but I am not getting the expected output. In my ./config/application.php I added this:
// Define theme directory and URL if THEMES_DIR is set in .env
if (env('THEMES_DIR')) {
Config::define('WP_THEME_DIR', $webroot_dir . '/app/' . env('THEMES_DIR'));
Config::define('WP_THEME_URL', Config::get('WP_HOME') . '/app/' . env('THEMES_DIR'));
}
// Define plugin directory and URL if PLUGINS_DIR is set in .env
if (env('PLUGINS_DIR')) {
Config::define('WP_PLUGIN_DIR', $webroot_dir . '/app/' . env('PLUGINS_DIR'));
Config::define('WP_PLUGIN_URL', Config::get('WP_HOME') . '/app/' . env('PLUGINS_DIR'));
}
// Define uploads directory if UPLOADS_DIR is set in .env
if (env('UPLOADS_DIR')) {
Config::define('UPLOADS', 'app/' . env('UPLOADS_DIR'));
}
When I upload a file in wp-admin it adds wp to the url http://site.test/wp/app/static/media/2025/02/img.png instead http://site.test/app/static/media/2025/02/img.png
Additional context
No response
The text was updated successfully, but these errors were encountered:
Summary
I tried setting up custom plugins, uploads & themes directory but I am not getting the expected output. In my
./config/application.php
I added this:And in my
./.env
I added these values:When I upload a file in wp-admin it adds wp to the url
http://site.test/wp/app/static/media/2025/02/img.png
insteadhttp://site.test/app/static/media/2025/02/img.png
Additional context
No response
The text was updated successfully, but these errors were encountered: