Membersihkan WP Head

<?php
/*
Remove feeds and wordpress-specific content that is generated on the wp_head hook.
@link https://developer.wordpress.org/reference/hooks/wp_head/
*/

add_action(‘init’,function () {
// Remove the Really Simple Discovery service linkremove_action( ‘wp_head’, ‘rsd_link’ );

// Remove the link to the Windows Live Writer manifestremove_action( ‘wp_head’, ‘wlwmanifest_link’ );

// Remove the general feedsremove_action( ‘wp_head’, ‘feed_links’, 2 );

// Remove the extra feeds, such as category feedsremove_action( ‘wp_head’, ‘feed_links_extra’, 3 );

// Remove the displayed XHTML generatorremove_action( ‘wp_head’, ‘wp_generator’ );

// Remove the REST API link tagremove_action( ‘wp_head’, ‘rest_output_link_wp_head’, 10 );

// Remove oEmbed discovery links.remove_action( ‘wp_head’, ‘wp_oembed_add_discovery_links’, 10 );

// Remove rel next/prev linksremove_action( ‘wp_head’, ‘adjacent_posts_rel_link’, 10, 0 );

// Remove prefetch urlremove_action( ‘wp_head’, ‘wp_resource_hints’, 2 );
}
);