Advertisement
srikat

Untitled

Feb 14th, 2015
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. add_action( 'send_headers', 'tgm_io_strict_transport_security' );
  2. /**
  3.  * Enables the HTTP Strict Transport Security (HSTS) header.
  4.  *
  5.  * https://thomasgriffin.io/enable-http-strict-transport-security-hsts-wordpress/
  6.  *
  7.  * @since 1.0.0
  8.  */
  9. function tgm_io_strict_transport_security() {
  10.  
  11.     header( 'Strict-Transport-Security: max-age=10886400' );
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement