Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

link headers disabled wp

PHP// Disable REST API link tag
remove_action('wp_head', 'rest_output_link_wp_head', 10);

// Disable oEmbed Discovery Links
remove_action('wp_head', 'wp_oembed_add_discovery_links', 10);

// Disable REST API link in HTTP headers
remove_action('template_redirect', 'rest_output_link_header', 11, 0);
Source by wp-mix.com #
 
PREVIOUS NEXT
Tagged: #link #headers #disabled #wp
ADD COMMENT
Topic
Name
6+6 =