• Resolved woow

    (@woowmotors)


    Hello, I’m using WordPress as a back-end with react as a front-end. The WordPress URL looks like this: api.mywebsite.com and the site URL as: mywebsite.com

    The plugin is trying to use mywebsite.com/wp-json/media-cleaner/v1/all_settings/ instead of api.mywebsite.com/wp-json/media-cleaner/v1/all_settings/

    any option?

    Many thanks

    • This topic was modified 5 years, 2 months ago by woow.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi,

    The front-end being in React is not a problem, Gutenberg is also in React, as well as the front-end of my plugins 🙂

    Mmm, it’s tricky. You can try to play with the WPMC_URL defined in the media-cleaner.php file, maybe?

    Thread Starter woow

    (@woowmotors)

    Alright! You got me to the right place. This didn’t fix the issue. But after digging in the code, I found out that in my wp-config.php I inverted WP_HOME and WP_SITEURL. Because of a bug with the newsletter plugin..

    So that makes sense that it’s wrong and I should be looking at fixing that plugin instead of messing with a global.

    Otherwise I manually change the API_URL in admin.php and it works too!

    Thank you

    Plugin Author Jordy Meow

    (@tigroumeow)

    Haha, yes, indeed! Hopefully they will fix it too.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘api probleme’ is closed to new replies.