Request to Use site_url Instead of home_url for Headless WordPress Sites
-
Hello Printful Community,
I’m seeking assistance with a crucial update for the Printful integration with WordPress, particularly for those of us running headless WordPress setups.
Background: In traditional WordPress setups, the
home_url
typically points to the front page of the site, while thesite_url
points to the WordPress admin area. However, in headless configurations,home_url
often points to a different domain or front-end system, andsite_url
correctly references the WordPress backend.Issue: The Printful integration currently uses
home_url
to interact with WordPress. This approach works for standard setups but causes issues in headless environments wherehome_url
andsite_url
differ. Specifically, usinghome_url
fails to connect correctly to the WordPress admin area, leading to functionality problems.Request: Could the Printful development team update the integration to use
site_url
instead ofhome_url
for better compatibility with headless WordPress sites? This change would ensure that interactions are properly directed to the WordPress admin interface, regardless of thehome_url
configuration.Example: Here’s a simplified example to illustrate the issue:
- Home URL (
home_url
):https://frontend.example.com
(Served by a front-end system) - Site URL (
site_url
):https://admin.example.com
(WordPress admin backend)
Current Behavior: Printful tries to communicate via
https://frontend.example.com
. Desired Behavior: Printful should communicate viahttps://admin.example.com
.I believe many in the community using headless WordPress would benefit from this adjustment. If more information or specific examples are needed to clarify the request, I’d be happy to provide them.
Thanks for considering this update! I appreciate the support and look forward to a resolution.
Best regards,
- Home URL (
- The topic ‘Request to Use site_url Instead of home_url for Headless WordPress Sites’ is closed to new replies.