Section en-wordpress

WordPress: Remove update notifications

Written by on 13/05/2014
Category:   Wordpress, Backoffice
Tags:   admin, wordpress
Place in the functions.php file: $func = function ($a) { global $wp_version; return (object) array( 'last_checked' => time(), 'version_checked' => $wp_version, ); }; add_filter('pre_site_transient_update_core', $func); add_filter('pre_site_transient_update_plugins', $func); add_filter('pre_site_transient_update_themes', $func);

WordPress: Remove Default Elements from the Header

Written by on 12/05/2014
Category:   Wordpress, Backoffice
Tags:   admin, header, wordpress
In some cases, we need to remove all the default meta tags from WordPress templates. To do this, simply add the following code to your functions.php file remove_action('wp_head', 'wp_print_styles', 8); remove_action('wp_head', 'wp_print_head_scripts', 9); remove_action('wp_head', 'feed_links_extra', 3); remove_action('wp_head', 'feed_links', 2); remove_action('wp_head', 'rsd_link'); remove_action('wp_head', 'wlwmanifest_link'); remove_action('wp_head', 'index_rel_link'); remove_action('wp_he...