Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Enforce HTTPS for Attachment URLs
- * @version 1.0
- */
- function mycred_pro_enforce_https_for_attachments( $url ) {
- return str_replace( 'http://', 'https://', $url );
- }
- add_filter( 'wp_get_attachment_url', 'mycred_pro_enforce_https_for_attachments' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement