Skip to content

Instantly share code, notes, and snippets.

@WerdsWords
Last active December 19, 2015 19:28
Show Gist options
  • Save WerdsWords/6005899 to your computer and use it in GitHub Desktop.
Save WerdsWords/6005899 to your computer and use it in GitHub Desktop.
#2: dashboard_primary_title
<?php
/**
* NOTE: This one is on hold until we can confirm
* it actually a) works, b) serves a purpose.
*
* Filter the WordPress Blog widget title
*
* @see wp_dashboard_setup()
*
* @param string $title The dashboard widget title.
* @return string The filtered widget title.
*/
function filter_wp_blog_widget_title( $title ) {
return __( 'Awesome WordPress Blog', 'yourtextdomain' );
}
add_filter( 'dashboard_primary_title', 'filter_wp_blog_widget_title' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment