Monday, October 1, 2012

Remove current theme from “Right Now” dashboard widget

add_filter( 'ngettext', 'wps_remove_theme_name' );
if(!function_exists('wps_remove_theme_name')) {
function wps_remove_theme_name($translated) {
     $translated = str_ireplace('Theme %1$s with',  '',  $translated );
     return $translated;
  }
}

No comments:

Post a Comment