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)
- What keys are needed when passing the icons array to plugins_api()?
- creating html reusable blocks via shortcodes
- get current date + 90 days and checking every day
- Adding a new field to the address field type in gravity forms
- Replacing a plugin function with a custom renamed function doesn’t work
- Two problems on my WordPress installation [closed]
- How to create an input field, and base the output on spreadsheet data? [closed]
- Facebook Messager Plugin
- `plugins_api()`: why does a commercial plugin changelog link result in a tailing plugins repo check and 500 error? [closed]
- get 404 when accessing wp-admin/plugin-install.php
- Nested shortcode functions accessing variable
- Calling an attribute from a plugin shortcode
- Fatal error: Call to undefined function cmsms_theme_page_layout_scheme()
- How to call WordPress function other files
- All sites themes functions.php have been changed
- Customize permalink wordpress category id
- Conditional attributes and logic per product category
- Disqus deleted comments are syncing with wordpress but active comments do not
- Admin style for just one plugin in dashboard
- After upgrade to php 7 plugin/them updates broke [closed]
- WP Query. Is there a maximum size?
- Updating plugins asks for FTP information, why? (this is a new one)
- Programatically update non-wordpress repository hosted (self-hosted) plugins
- Procedural Question on Plugin Installation
- How to remove custom post type and add category and post name
- Some recent plugin updates have failed “Could not create directory”
- Grab WordPress Salt Data From URL
- Call specific plugin update
- Malware installation during plugin update?
- Ajax : Call undefined function plugin_function() … can’t call any plugin function
- WordPress get_avatar function not correct working
- WordPress plugin updates / set file as immutable to prevent certain files from changing?
- WordPress metaboxes – textfield suggestion automatically populated
- bbPress plugin: forum lists not showing in correct order? [closed]
- Which file of wordpress manage plugins functionalities?
- How to test ‘upgrader_process_complete’ hook in plugin development?
- How to create an option page for this simple plugin
- What happens if I don’t update my plugins?
- Difference and examples of esc_attr__() and esc_attr_e()
- How to set Noindex to all wordpress pages in a catergory?
- WordPress update and plugin install not working
- What is @Action in WordPress?
- How do I disable an update for a specific plugin?
- Batch update of WordPress Plugins
- My homemade plugin is trying to update to someone else’s plugin
- Improving the perfomance of a plugin action
- Display Custom Field Value on Admin Page Column
- List the authors that have written posts in a category
- Load Javascript from Plugin in One Page Only?
- Is there a best practice remediation for PhpStorm’s warning that void function the_post_thumbnail is used?
- the_tags : can we insert a class
- How to over-ride a file in a plugin? [closed]
- Overwrite category head title
- Plugin is a widget, but I want to call it in the head, can I?
- Check if variable is set in filter
- Cannot get wpdb data (Error in a simple fuction) [closed]
- How to prevent additional code in functions.php to be removed once there is an update?
- Plugins fail to update: Download failed. A valid URL was not provided
- What is a rock solid development and deployment workflow? [closed]
- How do I get the user ID of the user that was updated in WordPress?
- How to update mu-plugin
- Checking the count within a foreach loop
- execute function after one completed
- How to keep variable `$post` to using in another file
- UpdraftPlus installed malware – scared to download or update plugins now! [closed]
- WordPress checkbox and Illegal string offset
- Image change on hover
- Child Themes and Updating Parent Theme
- Passing stored variables to add_filter
- Create a post builder skin in a plugin
- Plugin Development – Functions or Hooks?
- Proper way to use plugin functions in functions.php
- Error checking when future updates are automatic
- Undefined index: action plugin problem
- PHP script from functions php is loaded via admin-ajax to div…and the result is 0, not the desired content
- How to reset the plugins without deactivate the plugin
- plugins_url() works everywhere but wp_reqister_script()
- JQuery prepend a function
- Basics of changing plugin output
- Adding class to last list item? Not WP generated
- Replacing global wp_query
- Why can’t I call a (member) function from within a foreach?
- Are there action hooks for comments?
- Help with WP Business Directory Manager Plugin?
- Is there a maximum length to a WordPress Page?
- I changed .live() to .on() but change is not reflected on the server
- How to execute plugin and theme updates from a web hook / endpoint?
- Vulnerability Concern From the Plugin or From Not Updating the Plugin?
- wp_dequeue_script for a Plugin
- Need to replace Currency Shortforms
- wp_enqueue_scripts
- Return multiple values in a shortcode attribute
- get specific value of a array | PHP
- How to get specific string/value from an array? php [closed]
- Shortcode Attributes to Return different $_POST