Use plugins_url() instead of WP_PLUGIN_URL
-
WP_PLUGIN_URL is not SSL (https) aware and creates a mixed/insecure content error if we switch to HTTPS using a SSL terminator.
Mixed Content: The page at ‘https://www.example.com/’ was loaded over HTTPS, but requested an insecure stylesheet ‘https://www.example.com/wp-content/plugins/easy-columns/css/easy-columns.css’. This request has been blocked; the content must be served over HTTPS.
plugins_url() will fix the issue.
- The topic ‘Use plugins_url() instead of WP_PLUGIN_URL’ is closed to new replies.