Opened 8 years ago
Closed 8 years ago
#37659 closed feature request (wontfix)
Constant to disable 3rd party loading
Reported by: | tazotodua | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | HTTP API | Keywords: | |
Focuses: | Cc: |
Description
This would be a good for developers - http://wordpress.stackexchange.com/questions/235933/disable-external-3rd-party-call-images-fonts-in-dashboard
Change History (4)
Note: See
TracTickets for help on using
tickets.
Copying my answer from WPSE here:
There's no such constant in WordPress core that would allow you to that. As plugins and themes can do pretty much anything, it's hard to detect such external calls. Also, only very few users actually run WordPress on a local install (mainly developers). Thus, this is not suitable for core according to the project's philosophies and better left to plugins.
For example, Airplane Mode by Andrew Norcross accomplishes this very well. Currently implemented:
If you want to toggle such an offline mode via a constant defined in PHP (instead of a UI toggle), the WP Local Toolbox plugin has such a feature. Just put this in your wp-config.php file.