Over the years, WordPress has placed a lot of junk in their system. Here's how to remove some of it.
/** ******** ******** ******** ******** ******** ********
* TITLE: Remove unnecessary meta-data from your WordPress site
* DESCRIPTION: Over the years, wordpress has placed a lot of junk in their system.
*/
function remove_header_extra(){
//Are you editing your WordPress blog using your browser? Then you are not using a blog client
remove_action('wp_head', 'rsd_link');
// Windows Live Writer is (it’s another blog editing client
remove_action('wp_head', 'wlwmanifest_link');
//This announces that you are running WordPress and what version you are using.
remove_action('wp_head', 'wp_generator');
//URL shortening is sometimes useful, but this automatic ugly url in your header is useless.
remove_action('wp_head', 'wp_shortlink_wp_head');
// Display the links to the general feeds: Post and Comment Feed
remove_action('wp_head', 'feed_links', 2);
//// Display the links to the extra feeds such as category feeds
remove_action('wp_head', 'feed_links_extra', 3);
//Deprecated
remove_action('wp_head', 'index_rel_link');
// start link
remove_action('wp_head', 'start_post_rel_link', 10, 0);
// prev link
remove_action('wp_head', 'parent_post_rel_link', 10, 0);
// Display relational links for the posts adjacent to the current post.
remove_action('wp_head', 'adjacent_posts_rel_link', 10, 0);
}
add_action('init', 'remove_header_extra');
WordPress API development with Postman or PAW
The Wordpress API [https://wordpress.org/plugins/acf-to-rest-api/] works well. Once you figure out how to send a REST request, you'll be jamming in no time....
Bitnami WordPress Cheatsheet for AWS Lightsail
I'm currently working on two WordPress websites that have been pre-configured by Bitnami within a Virtual Private Cloud. Below are a few select commands I use...
Subscribe to new posts
Processing your application
Please check your inbox and click the link to confirm your subscription
There was an error sending the email