How to Remove link rel=”EditURI” and link rel=”wlwmanifest” of WordPress

The code of rel=”EditURI” and rel=”wlwmanifest” is only for  Windows Live Writer to offer the posts for your wordpress blog, if you do not need them, you can del them as follows:

Method 1:
1.Login to your WordPress admin panel
2.Navigate to Appearance > Editor
3.Click Theme Functions (functions.php) from the Theme Files section
4.Add the following code to the end of the file. Just before the closing <?php } ?> or ?> tags:
add_action(‘init’, ‘remheadlink’);

function remheadlink() {
remove_action(‘wp_head’, ‘rsd_link’);
remove_action(‘wp_head’, ‘wlwmanifest_link’);
}

5.Click the Update File Button and go view the source code of a page on your site

Method 2:
If the other plug-ins do not need <?php wp_head(); ?>, you can delete <?php wp_head(); ?> directly, then not need to add the above code.

Method 3:
Go to wp-includes, open default-filters.php, at about line 180, you can find the following codes:

//add_action( ‘wp_head’,             ‘feed_links’,                    2     );
//add_action( ‘wp_head’,             ‘feed_links_extra’,              3     );
//add_action( ‘wp_head’,             ‘rsd_link’                             );
//add_action( ‘wp_head’,             ‘wlwmanifest_link’                     );
//add_action( ‘wp_head’,             ‘index_rel_link’                       );
//add_action( ‘wp_head’,             ‘parent_post_rel_link’,          10, 0 );
//add_action( ‘wp_head’,             ‘start_post_rel_link’,           10, 0 );
//add_action( ‘wp_head’,             ‘adjacent_posts_rel_link_wp_head’, 10, 0 );
add_action( ‘wp_head’,             ‘locale_stylesheet’                    );
add_action( ‘publish_future_post’, ‘check_and_publish_future_post’, 10, 1 );
add_action( ‘wp_head’,             ‘noindex’,                       1     );
add_action( ‘wp_head’,             ‘wp_print_styles’,               8     );
add_action( ‘wp_head’,             ‘wp_print_head_scripts’,         9     );
//add_action( ‘wp_head’,             ‘wp_generator’                         );
//add_action( ‘wp_head’,             ‘rel_canonical’                        );
add_action( ‘wp_footer’,           ‘wp_print_footer_scripts’              );
//add_action( ‘wp_head’,             ‘wp_shortlink_wp_head’,          10, 0 );
add_action( ‘template_redirect’,   ‘wp_shortlink_header’,           11, 0 );

Just add // before the functions you do not need.