Monthly Archive: January 2016

0

WordPress Function to Unregister WP Default Widgets

Unregister WP Default Widgets Tested on: WordPress 3.0.1 // unregister all default WP Widgets function unregister_default_wp_widgets() { unregister_widget(‘WP_Widget_Pages’); unregister_widget(‘WP_Widget_Calendar’); unregister_widget(‘WP_Widget_Archives’); unregister_widget(‘WP_Widget_Links’); unregister_widget(‘WP_Widget_Meta’); unregister_widget(‘WP_Widget_Search’); unregister_widget(‘WP_Widget_Text’); unregister_widget(‘WP_Widget_Categories’); unregister_widget(‘WP_Widget_Recent_Posts’); unregister_widget(‘WP_Widget_Recent_Comments’); unregister_widget(‘WP_Widget_RSS’); unregister_widget(‘WP_Widget_Tag_Cloud’); } add_action(‘widgets_init’, ‘unregister_default_wp_widgets’, 1);

0

WordPress Function to Remove superfluous info and HTML within the <head> tag

// remove unnecessary header info add_action( ‘init’, ‘remove_header_info’ ); function remove_header_info() { remove_action( ‘wp_head’, ‘rsd_link’ ); remove_action( ‘wp_head’, ‘wlwmanifest_link’ ); remove_action( ‘wp_head’, ‘wp_generator’ ); remove_action( ‘wp_head’, ‘start_post_rel_link’ ); remove_action( ‘wp_head’, ‘index_rel_link’ ); remove_action( ‘wp_head’,...

0

WordPress Function to WordPress Custom Admin Footer

WordPress Custom Admin Footer // customize admin footer text function custom_admin_footer() { echo ‘add your custom footer text and html here’; } add_filter(‘admin_footer_text’, ‘custom_admin_footer’); I use this for client sites as a simple point...

0

WordPress Function to Function to Disable RSS Feeds

Function to Disable RSS Feeds Tested on: WordPress 3.0.1 You can disable RSS feeds If you want to maintain your WordPress based website as static. You can Use this function : function fb_disable_feed() {...