📜  链接标题已禁用 wp - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:10.880000             🧑  作者: Mango

代码示例1
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);