-
get_bloginfo('url')callshome_url()callsget_home_url()reads optionhome -
get_bloginfo('wpurl')callssite_url()callsget_site_url()reads optionsiteurl get_bloginfo('siteurl')andget_bloginfo('home')are deprecated arguments and returnget_bloginfo('url')(siteurlargument is documented wrong in Codex as equal towpurl, it’s not in current code)
The difference is that these two function chain to different options, which are typically same.
It would be more appropriate to compare get_bloginfo('url') to get_home_url() or get_bloginfo('wpurl') to get_site_url(). Then the answer is that these functions are on different level in chain. Typically the deeper function is – the more flexible it is and the less filters output passes through.
Related Posts:
- Custom media upload content for inserting custom post shortcode
- Page Templates from plugin not working after upgrading WP to 4.7 or upper version
- How to add option box in “Edit Post” plugin API?
- Avoiding plugin name collisions with WP updater
- Using standard backend elements in Plugin
- Plugin development: how to create a form and get custom data?
- Security error WP 4.0 + WP phpBB Bridge [closed]
- WordPress adding tags into plugin content
- How to list the Hooks and order of execution in current loading page? [duplicate]
- How to make my plugin theme-independent?
- Execute a function using ajax
- Updating post meta for custom post types
- How to handle the Plugin Version on Update using Tortoise SVN and the worpdress.org Plugin Repository?
- Custom Shipping method not showing in checkout
- REST-API: extend media-endpoint
- How can I create a simple interface for my WP plugin?
- Where to put my global functions?
- Hidden Custom Post Type
- Where does WordPress register default scripts like jQuery?
- Adding Attachment Display Settings in custom media frame
- How to include code into functions.php file via a plugin
- Is it possible to enqueue CSS files from plugin before theme’s CSS files?
- Determine Registered Admin Menus
- Help With MySQL to WPDB Query Conversion
- code is working properly in Core PHP but writing coding in WordPress
- 306 MB of wp_options occupied by WordPress SEO Plugin, is that normal? [closed]
- Custom plugin init action causing general slowness
- Perform internal redirect in WordPress?
- How to prevent plugins from loading jQuery
- Getting wp.me shortlink for wordpress custom post type
- Display custom content using page.php from theme
- Remove .htaccess portion upon plugin deactivation?
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- First plugin, problem with get_pages
- Translations for my plugin don’t show up
- Translation issue with global variables
- Is there a better way of handling AJAX requests in WordPress?
- how to add a comment button to be displayed only for the posts in the home page [closed]
- what is the point of telling add_filter how many parameters you want passed to the function?
- How to add category and subcategory in WordPress custom code?
- Structuring function with registration_errors hook
- Can’t create tables with my plugin
- using wp_cache in plugin
- Should I use the action in the plugin’s main file?
- How to data add to table when update post wordpress? when we clicked!
- can’t unzip file
- WooCommerce – I want to add functionality of one plugin to another plugin — best approach?
- Dotenv file in custom plugin
- Check if theme supports sidebar
- Problem with MEMCACHE and Redis with wp_options
- Change plugin descriptions
- Getting the same post on my related post
- I want to schedule email (date, time is in database->table) wp_schedule_event() not working
- How to create a page with the selected template after activating the plugin
- How to remove WordPress Default Comment? not Facebook
- How to use Datatable with Ajax when creating plugin on WordPress?
- I enabled debugging but I still get the same message: There has been a critical error on your website
- wp_mail function not working in WordPress Plugin Boilerplate
- Use Case: Multiple Shipping Methods per Order
- Showing how many times is plugin activated or deactivated
- plugin operation launch every time i click on page
- Could someone maybe point me in the direction of a decent tutorial on how to create a wordpress plugin that is compatible with another plugin please?
- WP options plugin setting not saving the selected checkboxes
- How can I customize Easy Appointment plugin?
- How to get post that has non zero or greater than zero meta value
- how to add custom css at top above all css file for specific url
- Form tries to download a file on submit
- Coming soon pages with rest of site in maintenance mode
- insert multiple entries in database using a loop issue
- Web Application Framework Compatibility with WP Plugin
- Plugin Works, but Widget Doesn’t
- Plugin loaded, but not running
- Merge custom plugins in one folder
- Execute certain function on GET request
- how to load a file from a plugin when a url is passed
- Is it possible to cancel a post status transition?
- Undefined variable _POST
- How to include a custom thumbnail with my WordPress plugin?
- How to create a nameplate extension? [closed]
- ACF Plugin WP with list-group – Vimeo [closed]
- manage_{taxonomy}_custom_column not working
- Suitable hook when creating, updating and deleting posts programmatically
- add_meta_box showing blank screen in my page
- How to be Variables and options must be escaped when echo’d?
- How to override plugin function in code snippets WordPress
- How can I gather forums posted by visitors from different sites in one place? [duplicate]
- How to make content as required in custom post type?
- How to create a “Most Popular” & “Latest” TAB in WordPress
- is_user_logged_in() undefined at shutdown in plugin context
- What are Seeds? [closed]
- Shortcode cannot parse attributes within double quotes. ” is becoming ” breaking my shortcode
- Plugin translations are not loaded from translate.wordpress.org
- Use inline callable for hooks and filters
- Error in using ‘admin_enqueue_scripts’ action through a class
- How do i fix this error?
- WordPress 6.3 with datatables – cannot seem to pass json from php to javascript
- Mixed results with is_page() WordPress function, when using $this, or self
- I have created a custom plugin. After activation it creating page but i am not getting how to add another php file at page content?
- Custom Search Function in WordPress Returns No Results
- Gutenberg Blocks and Elementor