If wordpress API gives you http instead of https it means that somewhere your data still contains HTTP, therefor you might need to take a more careful look at what urls are in your DB, for this specific functions you should look at your menus.
But probably the simplest way to solve this issue to to buffer page generation by using ob_start
on init event and outputting the buffer on shutdosn after replacing all the http://mydomain to https://mydomain.
add_action('init','wpse199859_stat_buffering',0);
function wpse199859_stat_buffering() {
ob_start();
}
add_action('shutdown','wpse199859_stop_buffering',0);
function wpse199859_stop_buffering() {
$o = ob_get_contents();
echo str_replace('http://mydomain','https://mydomain',$o);
}
Related Posts:
- Ngrok errors ‘502 bad gateway’
- curl: (60) Peer’s Certificate issuer is not recognized.
- Switch from https back to http
- Stop WordPress from using HTTPS and just use HTTP
- Chrome Version 44.0.2403.89 m is trying to force HTTPS
- Use https for img src
- WordPress in HTTPS, causing Redirect Loops
- Serving HTTP and HTTPS from one installation
- WordPress behind Proxy – Mixed Content
- How to deactivate/remove https on localhost project from online
- Changing http to https in wp_options
- Moving from http to https, and www. to non-www URL
- Redirect URL on OAuth2.0 after switching from http to https
- Modify a plugin to open external links with iframe using https and not http?
- How to fix mixed content warnings for plugin resources?
- Changing HTTP to HTTPS
- WordPress changing script source from https to http
- WordPress forces HTTPS to HTTP in template
- WordPress HTTP requests point to localhost server after move to live HTTPS server
- Internet Explorer “Security Information” on every page in https site
- Category links break the https
- Can’t access Admin Panel
- Issues with forcing HTTPS
- Make WordPress site secure through HTTPS and SSL
- What is the “Force secure connections” option used for?
- White page on requests with Sec-Fetch-Site: cross-site
- Windows-hosted new site shows no preview: “Future home of something quite cool.” message is displayed
- Staging Session Randomly Switched from Secure (https) to Not Secure
- Moving wordpress site from HTTP to HTTPS ERR_TOO_MANY_REDIRECTS
- Issues after switching over to HTTPS
- content block https from http
- Navigation Bar displays vertically on Mozilla
- ERR_TOO_MANY_REDIRECTS when I change http to https
- I just updated to Https from Http, Should I change WordPress Address (URL) and Site Address in WordPress Dashboard?
- i can’t enter to control panel of my WordPress site
- Turn off https in WordPress 4
- Change links beginning from http:// to // so that https site can get correct CSS/JS files
- HTTPS for every page except for feeds
- wordpress website crash on https
- Whole website redirected to httpa but in dashboard settings still http
- http to https stuck in infinite loop
- How to test a HTTPS URL with a given IP address
- SSL Error: unable to get local issuer certificate
- How to redirect all HTTP requests to HTTPS
- How can I make git accept a self signed certificate?
- https connection using CURL from command line
- HTTPS connections over proxy servers
- @ converted to %40 in HTTPPost request
- Curl command for https ( SSL )
- nodejs – error self signed certificate in certificate chain
- Custom Tumblr theme wont save because of non-https urls?
- Simple Java HTTPS server
- Unrecognized SSL message, plaintext connection? Exception
- HTTPS connection Python
- Make a HTTPS request through PHP and get response
- How to execute a https GET request from java
- Java: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- Enabling HTTPS on express.js
- Mixed Content Page: requested an insecure stylesheet error
- How do you redirect HTTPS to HTTP?
- Could not establish secure channel for SSL/TLS with authority ‘*’
- Getting “Handshake failed…unexpected packet format” when using WebClient.UploadFile() with “https” when the server has a valid SSL certificate
- ndroid 8: Cleartext HTTP traffic not permitted
- Python requests SSL error – certificate verify failed
- Why am I suddenly getting a “Blocked loading mixed active content” issue in Firefox?
- How to fix “insecure content was loaded over HTTPS, but requested an insecure resource”
- How to find out if you’re using HTTPS without $_SERVER[‘HTTPS’]
- Https to http redirect using htaccess
- How can I force users to access my page over HTTPS instead of HTTP?
- How to force Laravel Project to use HTTPS for all routes?
- How can I fix the “No certificates found – The app Chrome has requested a certificate” Android / Google Chrome issue
- Redirecting from HTTP to HTTPS with PHP
- Issues with installing python libraries on Windows : CondaHTTPError: HTTP 000 CONNECTION FAILED for url
- file_get_contents() how to fix error “Failed to open stream”, “No such file”
- How do I disable responsive images in WP 4.4?
- SSL Breaks WordPress CSS
- Setting $_SERVER[‘HTTPS’]=’on’ prevents access to wp-admin
- Disable SSL / HTTPS for wordpress
- Switching MultiSite installation from HTTP to HTTPS
- Why is WordPress redirecting from http to https on a local environment?
- How to migrate a HTTPS WordPress installation to localhost?
- What do I need to do to convert my MultiSite from HTTP to HTTPS?
- Is there a way to force ssl on certain pages
- HTTPS leads to Sorry, you are not allowed to access this page
- SSL breaks customizer: page isn’t returned from ajax
- How to prevent WordPress from loading the jQuery library at the top of the page
- Stop WordPress and Plugins from Overwriting .htaccess
- Mixed content warnings after changing site adress from HTTP to HTTPS
- Disable all https in WordPress
- Remove Google Fonts Which Are (Probably) Added By Plugins
- How to use WordPress multisite with mixed HTTP and HTTPS sites?
- Loading different JS for http and https
- Loading style.css and Jquery using HTTPS
- Load images with http urls inside https post
- Local version of a WordPress site – SSL/HTTPS enforced?
- htaccess https redirect from www to non-www
- Force HTTPS using .htaccess – stuck in redirect loop
- bloginfo() and get_template_directory_uri() with SSL?
- Keeps on redirecting on my development copy
- After updating site to use SSL all images in posts point to http://