Hi all, I have a custom wordpress plugin that requires slim (via Composer). This plugin works on localhost, but I am having trouble getting it to work in the staging site, which is wordpress. I couldn’t find much on Dr. Google about what quickstart tweaks I would need to make to the plugin’s path definitions to get wordpress to properly see the php content. So far i have determined that it relates to the following topics, but making sense of the interactions between these seems beyond me: STATIC_DIR, plugins_url(), FILE, $_SERVER, wp_enqueue_script(), adjust routing in htaccess, adjusting require statements in the plugin’s php files. I have the tools I need (FTP access, wordpress access, plugin tree and files) just not the smarts to tie it all together. Is there a good quickstart or step by step or repository for getting Slim working on a Wordpress site? Thanks.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
|
Adding Wordpress within Slim 3
|
6 | 3244 | February 18, 2018 | |
|
Deploying on a shared host
|
26 | 17871 | December 14, 2021 | |
| Initializing slim framework inside a wordpress plugin | 0 | 181 | June 9, 2024 | |
|
Use slim framework inside Wordpress
|
0 | 1189 | December 7, 2016 | |
|
Installing Slim without using Composer
|
4 | 3619 | February 19, 2020 |