-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: Explain networking #1193
Comments
Rework wordingEnable Network Access in WordPress Playground Network access denied
Playground may want to
With
Expand on documentation page
Enable Networking via the Query API or Blueprint API
Playground soloSometimes you're just looking at an empty playground. Enable networking via the settings panel
|
Hi @flexseth, are you suggesting to rewrite the error message or add clarification to the docs and link to it? |
I didn't know what Does it allow your website to download plugins and themes? The idea was to try to determine why a user would need networking enabled in order for Playground to function correctly in their context Hopefully we could get the information out there before the so there aren't any "Gotchas" anyone runs into when using the Playground |
That's a great question! Technically, enabling the networking setting allows PHP to make network requests, via |
Just checked with videos from YT, Vimeo, and WP TV: none work when networking is disabled; WP TV doesn't work at all, due to CORS:
|
TIL, thank you for checking @ironnysh ! |
What does networking do?Networking allows your WordPress website to securely talk to other sites. This can include embedding video, installing plugins and themes, using APIs to transfer data, and importing content from outside sources.
|
Plugins that call API calls must have CORS support enabled on the APIs they are calling. This should be documented well enough to explain why an API call may fail when running from Playgrounds and what remediation steps should be take in the plugin and/or the API. See this discussion in the Playground slack for a particular use case. |
@asirota would you be up for contributing such an explanation to Playground documentation? |
I would love to -- we are working on code changes in our WildApricot Press plugin to support this so I may even have some sample code once we fix it. Let me have a go at it. Where is the github for the docs site? |
@asirota it's in this repo! Specifically, here: https://github.com/WordPress/wordpress-playground/tree/trunk/packages/docs/site |
And here are a few tips how to contribute to that site: https://wordpress.github.io/wordpress-playground/contributing/documentation |
Rework wording
Enable Network Access in WordPress Playground
Network access is important, let's enable users to work with the Playground and have access to the 'net
Network access.. denied!
Enabling Network Access in Playground
Expand on documentation page
The text was updated successfully, but these errors were encountered: