We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bubs_update_title_prefix
Prevents issues where this code runs multiple times and prefixes the site name too much
if ($site_prefix) { function bubs_update_title_prefix() { global $site_prefix; $site_name = get_option('blogname'); $site_name = str_replace(['LOCAL: ', 'STAGING: '], '', $site_name); if (strpos($site_name, $site_prefix) === false) { update_option('blogname', $site_prefix . $site_name); } remove_action('admin_init', 'bubs_update_title_prefix'); } add_action('admin_init', 'bubs_update_title_prefix'); } ?>```
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Prevents issues where this code runs multiple times and prefixes the site name too much
The text was updated successfully, but these errors were encountered: