You can do this:
add_filter( 'http_request_host_is_external', '__return_true' );
However, note that this disables this security feature. If you know the host or url isn’t going to change and is always going to be that, you can be more secure by checking for that explicitly:
add_filter( 'http_request_host_is_external', 'allow_my_custom_host', 10, 3 );
function allow_my_custom_host( $allow, $host, $url ) {
if ( $host == 'my-update-server' )
$allow = true;
return $allow;
}
Related Posts:
- Filter any HTTP request URI?
- No ‘Access-Control-Allow-Origin’ header is present [closed]
- Modify wp headers on specific page
- what is __return_false in filters
- How to filter users on admin users page by custom meta field?
- Passing Additional Parameters to add_filter Callable
- How can I add an Author filter to the Media Library?
- Modify WordPress Rest Api Request/Response
- How to add some custom HTML into wordpress admin bar?
- Remove “Private” + “:” in title does not work
- Adding a class to the body_class function
- Modify the post/entry wrapper markup in genesis childtheme [closed]
- Where is the proper place to add a filter for pre_get_table_charset?
- Change text of Description in Image Library
- Allowing non-latin characters in registration
- post_row_actions filter is not working while update post using quick edit
- Should I use add_action(‘publish_post or add_filter(‘publish_post?
- How to always display a specific post from the search result first
- get_the_excerpt() with fallback like the_excerpt()
- Filter Gutenberg Blocks Content
- How do I replace a render_callback function for a block?
- check if FILTER(“the_content”) is being executed in `the_post()`
- Change Password Strength Indicator names?
- Filter my args by the post 1st letter
- Limit RSS feed to previous calendar month
- Adding Filter to Homepage only
- How to stop wrapping comments in P tag
- How to modify core when there is no hook?
- Is this the proper way of switching the “Edit My Profile” link with my BuddyPress “Extended Profile” link?
- Does auto_update_plugin Filter Work When Put In Theme’s functions.php File
- In need of a content replace filter for posts in a specific wordpress category
- html tags in gettext hook get escaped
- How to remove action with slashes and arrows?
- Inline Styles on all native blocks
- How to filter post content and force every link () made in blocks to return urldecode() with readable value?
- Set default terms for new posts / CPTs
- Get .subsubsub count of post per status queried using pre_get_posts
- Adaptive product filters for WooCommerce
- Changing WordPress core without hacking core
- Plugin options, presets and filters : can you help me improve my workflow?
- Remove posts inside pre_get_posts using a custom query
- Remove / Hide Attachment Display Settings in Add Media popup / dialog
- Filter the_content to add something before each element?
- How to display the content HTML of a page without displaying the gallery code as well
- Filter by category and city for doctors and hospitals in wordpress
- Remove Comment Author Link only for subscribers
- Prevent reset password specific user role
- Why is overwriting $GLOBALS killing the_content()?
- Sorting products by price ( regular + sale price )
- WooCommerce coupon hook argument NULL when using filter woocommerce_get_shop_coupon_data
- Create new custom field that calculates age
- How can I edit comment meta value before it is saved?
- Why current_user_can(‘edit_comment’) always true?
- Remove comments validation (remove filter?)
- How to query if meta_key does exist or not?
- Redirect after post deleted
- Remove Site Name from wp_title WITHOUT removing from attribute
- Plugin default settings hook
- How to stop filter from running on the index.php page?
- Filter Shortcodes when using get_page
- Usage of filters
- add_filter to the_content after apply_filters
- Where exactly does the edit_{taxonomy} hook fire?
- How to filter with dropdown in backend for custom data
- Is there any reason for the nested filters to be applied on the first case and not in the second one?
- Best practice: Custom Post Type / Filter / Load more
- How to Edit Ecommerce filters URL, h1, h2 , Title
- Redirect an archive page to its relevant URL-friendly filtered page
- Run `wp_insert_post_data` on all posts
- Show uploaded pdf files dynamically and filter by month name
- How can I pass instance via apply_filters as a parameter?
- how to use substr with get_the_content()
- AJAX Post Filter
- Add filter return false not working
- How to add markup to the wp-custom-header div
- How to take shortcode and content separately from a page?
- Display post after choice two taxonomy terms
- How to stop echoing gallery inside content?
- how to filter datalist table of wordpress
- Ajax Filtering Pagination
- Apply a filter str_replace on specific caracters array in the_content()
- get_the_archive_title hook unwanted changes!
- Is there a function to edit Blogs contents in Blogs page?
- Can’t set properly WordPress add_filter function
- apply_filters to $GLOBALS
- How to filter content in Dashboard?
- The title of an attachment is not working
- Removing a line from a WP core function (comment_template.php) – filter or other technique?
- How to remove a filter that is an anonymous object?
- Hide H1 Title using the_title filter
- get_the_excerpt on mobile still displays continue reading
- Date filter for post query not filtering results when variable outside the function
- Filter image and text from post format
- Filter and Search
- Remove pipe in views admin page filter
- Hooking/Filtering theme name to add theme directory
- How to use filter in this situation, can not modify the structure using filter
- add_filter – create_function pb in PHP8
- Woocommerce price filter widget always shows max price of most expensive product in the whole shop
- Filter hook for the action of listing users