It is possible to filter the get_bloginfo()
, but you’ll have to find a way to fine tune the conditional, because the override is global…
add_filter( 'pre_option_blogname', 'wpse_58030_override_blogname' );
function wpse_58030_override_blogname( $bool )
{
// If not page with ID == 28, do nothing
if( !is_page( 28 ) )
return false;
// Change the 'blogname'
return "Not The Blog Name";
}
Observation
get_bloginfo()
is the same as get_bloginfo('blogname')
.
If the desired filter was siteurl
, the filter would be pre_option_siteurl
.
Related Posts:
- Plugin update error message
- Redirect to another page using contact form 7? [closed]
- How to get plugin name from plugin file location
- How use get_plugin_updates() function?
- Block plugin update possibilities (but not by hiding notifications)
- How to export comments in WordPress?
- Update plugin from personal API
- How can I call a function from one plugin within another plugin?
- Gutenberg disallow certain custom blocks but keep all core blocks?
- Publish author posts only with editor approval?
- Customizing subject in comment notification e-mails
- Get Latest Plugin Version from WP API
- How wordpress detects a plugin update
- WP showing “warning: call_user_func_array()”, What to do?
- Overwrite textdomain of plugins by default – Lost Translation
- Declare a function before plugin does on the theme functions.php file
- Generate Advanced Custom Fields box in custom admin menu page
- Removing user contact methods works from functions.php but not from a plugin
- Hook (upgrader_process_complete) running moment
- WordPress plugin search does not work and updates are not shown, VPS install
- Use functionality of 2 wordpress plugins
- Under which circumstances is the .maintenance file not deleted?
- Plugin child folder?
- How can i change an image’s author?
- All Updated Plugins Disappeared
- Could not create directory
- Can I check plugins and themes for PHP 5.6 ahead of global PHP server Update
- Using plugin functionality in external php script not working
- greatest() function returns undefined property
- Override plugin with functions.php
- The Point of Using apply_filters()
- How to get subscription key or id using Woocommerce Subscriptions [closed]
- How to include code into functions.php file via a plugin
- Missing argument 3 for wp_register_sidebar_widget()
- Are there hooks for WordPress updates?
- How to make my plugin able to be updated from admin panel?
- WordPress Plugin Page is Loading in Admin Content Container Instead of Separate Page
- Shortcode button dosent work for all posts. Work for first post only
- Is there a way I can find wordpress posts that don’t contain a word?
- Prevent shortcode from being wrapped in tags
- Pushing out updates to multiple installs?
- Plugin updates from a specific location
- Calling plugin function inside custom plugin for onclick event
- Show function to super admin
- All sites themes functions.php have been changed
- Programatically update non-wordpress repository hosted (self-hosted) plugins
- Grab WordPress Salt Data From URL
- WordPress plugin updates / set file as immutable to prevent certain files from changing?
- How do I disable an update for a specific plugin?
- Plugin is a widget, but I want to call it in the head, can I?
- Cannot get wpdb data (Error in a simple fuction) [closed]
- How do I get the user ID of the user that was updated in WordPress?
- How to keep variable `$post` to using in another file
- Error checking when future updates are automatic
- Help with WP Business Directory Manager Plugin?
- Return multiple values in a shortcode attribute
- get specific value of a array | PHP
- wc_get_template new template does not showing up
- Loading a plugin’s js file from functions.php
- How to access OOP plugin function inside themes or other plugin
- Plugin upgrade failing during unzip
- Different registration form for different roles
- After a manual update, themes and plugins that were installed (and still in the directory) are not being seen
- Defining the value of a variable before a function?
- Elementor Pro display featured image on section -> style -> image using shortcode
- WordPress plugins – “Update” in backend vs replacing all files with never version
- Create a pdf from the entries in DB
- RSS feeds for specific topics
- add_rewrite_rule to load different page, without changing URL in browser
- Overriding a function in a WordPress plugin
- Adding discount functionality to the cart
- Precheck fields when I add a new post
- Get Shortcode output to database for static post_content
- working code, not working – Plugin Dev
- Use buddypress function outside of plugin
- Custom Plugin Update
- WPML – Hook when language is switched (change user language)
- Use action, filter, or hook to append HTML to WordPress plugin function
- Change custom rewrite rule when permalink is updated/changed
- Save Post Permalink In .txt File
- register_activation_hook doesn’t fire at all
- Plugin doesn’t update it’s version and code on WordPress.org
- How To Add Code To WP Without Plugin or Functions
- My ajax request don´t work and return 0
- How can I add a custom checkbox / radio button on the admin theme options to display a CSS or other?
- Disqus comments count taking long to update
- plugin not hooking to my custom hook
- Populate select option with JSON file
- Home page letters
- WordPress update plugin through Dashboard/Plugins displaying error
- Find all strings between an enclosing shortcode
- How to keep edited plugins updated?
- How to speed up installing plugins and upgrading WordPress
- Automatic updates of plugins and themes outside of wordpress.org
- Trying to output a “Most visited blogs” list in wordpress multisite
- No plugin updates after moving wp-config.php above root map
- wordpress Search function is not working
- PHP Creating a formula from mysql db values and db stored math operator
- Make plugin admin page visible to other roles
- wp_enqueue_script doesn’t load JS in plugin