Skip to content

Instantly share code, notes, and snippets.

@mindctrl
Created February 21, 2025 18:37
Show Gist options
  • Save mindctrl/dd27baf78821cd4bc9152773bada66cc to your computer and use it in GitHub Desktop.
Save mindctrl/dd27baf78821cd4bc9152773bada66cc to your computer and use it in GitHub Desktop.
Prepends "(DEV)" to blog name
add_filter( 'option_blogname', 'jp_dev_blogname' );
/**
* Prepend '(DEV) ' to blog name
*/
function jp_dev_blogname( $value ): string {
return '(DEV) ' . $value;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment