mirror of
https://github.com/szepeviktor/wordpress-website-lifecycle.git
synced 2025-08-17 18:11:08 +08:00
Display HTTP headers
This commit is contained in:
parent
8990131463
commit
bc28c1b946
1 changed files with 12 additions and 0 deletions
|
@ -19,6 +19,18 @@ add_filter(
|
|||
1
|
||||
);
|
||||
|
||||
// Display HTTP headers
|
||||
add_filter(
|
||||
'wp_headers',
|
||||
static function ($headers) {
|
||||
var_export($headers);
|
||||
echo "\n";
|
||||
return $headers;
|
||||
},
|
||||
PHP_INT_MAX,
|
||||
1
|
||||
);
|
||||
|
||||
wp();
|
||||
define('WP_USE_THEMES', true);
|
||||
require_once ABSPATH . WPINC . '/template-loader.php';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue