Useful Tricks for the WordPress Functions File

SHARE

Share on facebook
Share on google
Share on twitter
Share on linkedin

An Introduction to the WordPress Functions File

he features file behaves like a WordPress Plugin, adding elements and performance to a WordPress site. You can use it to call functions, each PHP and built-in WordPress, and to outline your personal functions. The functions.Php file is one in every of WordPress’s center files. In other words, it’s one that facilitates the energy of the complete platform, and it’s behind lots of the features on your site.

1. Remove Your WordPress Version Number

As you possibly know, depending on the theme you’re using, WordPress tends to show its model range in your site’s footer. It’s a tiny detail that you can do away with without problems with this code:

function wpb_remove_version() {
return '';
}
add_filter('the_generator', 'wpb_remove_version');

 

2. Remove “Welcome Panel” from WordPress Dashboard

Your welcome panel is the area of your dashboard that seems as soon as you log into WordPress, and it typically contains a few recommendations and checklists to get you started. With this code snippet, you’ll be in a position to do away with it permanently. You can easily hide by adding this code in your functions file.

remove_action('welcome_panel', 'wp_welcome_panel');

 

3. Hide admin bar (during development)

show_admin_bar( false );

Interested in Web Development, Designing & SEO services for your website? Get Free Consultation.