Title: get_bloginfo
Published: April 25, 2014
Last modified: August 20, 2026

---

# get_bloginfo( string $show = '', string $filter = 'raw' ): string

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#return)
 * [More Information](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#more-information)
    - [Usage](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#usage)
 * [Source](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#source)
 * [Hooks](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#hooks)
 * [Related](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#user-contributed-notes)

[ Back to top](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#wp--skip-link--target)

Retrieves information about the current site.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#description)󠁿

Possible values for `$show` include:

 * ‘name’ – Site title (set in Settings > General)
 * ‘description’ – Site tagline (set in Settings > General)
 * ‘wpurl’ – The WordPress address (URL) (set in Settings > General)
 * ‘url’ – The Site address (URL) (set in Settings > General)
 * ‘admin_email’ – Admin email (set in Settings > General)
 * ‘charset’ – The “Encoding for pages and feeds” (set in Settings > Reading)
 * ‘version’ – The current WordPress version
 * ‘html_type’ – The Content-Type (default: “text/html”). Themes and plugins can
   override the default value using the [‘pre_option_html_type’](https://developer.wordpress.org/reference/hooks/pre_option_html_type/)
   filter
 * ‘text_direction’ – The text direction determined by the site’s language. [is_rtl()](https://developer.wordpress.org/reference/functions/is_rtl/)
   should be used instead
 * ‘language’ – Language code for the current site
 * ‘stylesheet_url’ – URL to the stylesheet for the active theme. An active child
   theme will take precedence over this value
 * ‘stylesheet_directory’ – Directory path for the active theme. An active child
   theme will take precedence over this value
 * ‘template_url’ / ‘template_directory’ – URL of the active theme’s directory. 
   An active child theme will NOT take precedence over this value
 * ‘pingback_url’ – The pingback XML-RPC file URL (xmlrpc.php)
 * ‘atom_url’ – The Atom feed URL (/feed/atom)
 * ‘rdf_url’ – The RDF/RSS 1.0 feed URL (/feed/rdf)
 * ‘rss_url’ – The RSS 0.92 feed URL (/feed/rss)
 * ‘rss2_url’ – The RSS 2.0 feed URL (/feed)
 * ‘comments_atom_url’ – The comments Atom feed URL (/comments/feed)
 * ‘comments_rss2_url’ – The comments RSS 2.0 feed URL (/comments/feed)

Some `$show` values are deprecated and will be removed in future versions.
These
options will trigger the [_deprecated_argument()](https://developer.wordpress.org/reference/functions/_deprecated_argument/)
function.

Deprecated arguments include:

 * ‘siteurl’ – Use ‘url’ instead
 * ‘home’ – Use ‘url’ instead

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#parameters)󠁿

 `$show`stringoptional

Site info to retrieve. Default empty (site name).

Default:`''`

`$filter`stringoptional

How to filter what is retrieved. Default `'raw'`.

Default:`'raw'`

## 󠀁[Return](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#return)󠁿

 string Mostly string values, might be empty.

## 󠀁[More Information](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#more-information)󠁿

### 󠀁[Usage](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#usage)󠁿

    ```php
    $bloginfo = get_bloginfo( $show, $filter );
    ```

## 󠀁[Source](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#source)󠁿

    ```php
    function get_bloginfo( $show = '', $filter = 'raw' ) {
    	switch ( $show ) {
    		case 'home':    // Deprecated.
    		case 'siteurl': // Deprecated.
    			_deprecated_argument(
    				__FUNCTION__,
    				'2.2.0',
    				sprintf(
    					/* translators: 1: 'siteurl'/'home' argument, 2: bloginfo() function name, 3: 'url' argument. */
    					__( 'The %1$s option is deprecated for the family of %2$s functions. Use the %3$s option instead.' ),
    					'<code>' . $show . '</code>',
    					'<code>bloginfo()</code>',
    					'<code>url</code>'
    				)
    			);
    			// Intentional fall-through to be handled by the 'url' case.
    		case 'url':
    			$output = home_url();
    			break;
    		case 'wpurl':
    			$output = site_url();
    			break;
    		case 'description':
    			$output = get_option( 'blogdescription' );
    			break;
    		case 'rdf_url':
    			$output = get_feed_link( 'rdf' );
    			break;
    		case 'rss_url':
    			$output = get_feed_link( 'rss' );
    			break;
    		case 'rss2_url':
    			$output = get_feed_link( 'rss2' );
    			break;
    		case 'atom_url':
    			$output = get_feed_link( 'atom' );
    			break;
    		case 'comments_atom_url':
    			$output = get_feed_link( 'comments_atom' );
    			break;
    		case 'comments_rss2_url':
    			$output = get_feed_link( 'comments_rss2' );
    			break;
    		case 'pingback_url':
    			$output = site_url( 'xmlrpc.php' );
    			break;
    		case 'stylesheet_url':
    			$output = get_stylesheet_uri();
    			break;
    		case 'stylesheet_directory':
    			$output = get_stylesheet_directory_uri();
    			break;
    		case 'template_directory':
    		case 'template_url':
    			$output = get_template_directory_uri();
    			break;
    		case 'admin_email':
    			$output = get_option( 'admin_email' );
    			break;
    		case 'charset':
    			$output = get_option( 'blog_charset' );
    			if ( '' === $output ) {
    				$output = 'UTF-8';
    			}
    			break;
    		case 'html_type':
    			$output = get_option( 'html_type' );
    			break;
    		case 'version':
    			global $wp_version;
    			$output = $wp_version;
    			break;
    		case 'language':
    			/*
    			 * translators: Translate this to the correct language tag for your locale,
    			 * see https://www.w3.org/International/articles/language-tags/ for reference.
    			 * Do not translate into your own language.
    			 */
    			$output = __( 'html_lang_attribute' );
    			if ( 'html_lang_attribute' === $output || preg_match( '/[^a-zA-Z0-9-]/', $output ) ) {
    				$output = determine_locale();
    				$output = str_replace( '_', '-', $output );
    			}
    			break;
    		case 'text_direction':
    			_deprecated_argument(
    				__FUNCTION__,
    				'2.2.0',
    				sprintf(
    					/* translators: 1: 'text_direction' argument, 2: bloginfo() function name, 3: is_rtl() function name. */
    					__( 'The %1$s option is deprecated for the family of %2$s functions. Use the %3$s function instead.' ),
    					'<code>' . $show . '</code>',
    					'<code>bloginfo()</code>',
    					'<code>is_rtl()</code>'
    				)
    			);
    			if ( function_exists( 'is_rtl' ) ) {
    				$output = is_rtl() ? 'rtl' : 'ltr';
    			} else {
    				$output = 'ltr';
    			}
    			break;
    		case 'name':
    		default:
    			$output = get_option( 'blogname' );
    			break;
    	}

    	if ( 'display' === $filter ) {
    		if (
    			str_contains( $show, 'url' )
    			|| str_contains( $show, 'directory' )
    			|| str_contains( $show, 'home' )
    		) {
    			/**
    			 * Filters the URL returned by get_bloginfo().
    			 *
    			 * @since 2.0.5
    			 *
    			 * @param string $output The URL returned by bloginfo().
    			 * @param string $show   Type of information requested.
    			 */
    			$output = apply_filters( 'bloginfo_url', $output, $show );
    		} else {
    			/**
    			 * Filters the site information returned by get_bloginfo().
    			 *
    			 * @since 0.71
    			 *
    			 * @param mixed  $output The requested non-URL site information.
    			 * @param string $show   Type of information requested.
    			 */
    			$output = apply_filters( 'bloginfo', $output, $show );
    		}
    	}

    	return $output;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/general-template.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/general-template.php#L1018)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/general-template.php#L1018-L1155)

## 󠀁[Hooks](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#hooks)󠁿

 [apply_filters( ‘bloginfo’, mixed $output, string $show )](https://developer.wordpress.org/reference/hooks/bloginfo/)

Filters the site information returned by [get_bloginfo()](https://developer.wordpress.org/reference/functions/get_bloginfo/).

 [apply_filters( ‘bloginfo_url’, string $output, string $show )](https://developer.wordpress.org/reference/hooks/bloginfo_url/)

Filters the URL returned by [get_bloginfo()](https://developer.wordpress.org/reference/functions/get_bloginfo/).

## 󠀁[Related](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#related)󠁿

| Uses | Description | 
| [determine_locale()](https://developer.wordpress.org/reference/functions/determine_locale/)`wp-includes/l10n.php` |

Determines the current locale desired for the request.

  | 
| [get_stylesheet_uri()](https://developer.wordpress.org/reference/functions/get_stylesheet_uri/)`wp-includes/theme.php` |

Retrieves stylesheet URI for the active theme.

  | 
| [get_stylesheet_directory_uri()](https://developer.wordpress.org/reference/functions/get_stylesheet_directory_uri/)`wp-includes/theme.php` |

Retrieves stylesheet directory URI for the active theme.

  | 
| [get_template_directory_uri()](https://developer.wordpress.org/reference/functions/get_template_directory_uri/)`wp-includes/theme.php` |

Retrieves template directory URI for the active theme.

  | 
| [is_rtl()](https://developer.wordpress.org/reference/functions/is_rtl/)`wp-includes/l10n.php` |

Determines whether the current locale is right-to-left (RTL).

  | 
| [site_url()](https://developer.wordpress.org/reference/functions/site_url/)`wp-includes/link-template.php` |

Retrieves the URL for the current site where WordPress application files (e.g. wp-blog-header.php or the wp-admin/ folder) are accessible.

  | 
| [get_feed_link()](https://developer.wordpress.org/reference/functions/get_feed_link/)`wp-includes/link-template.php` |

Retrieves the permalink for the feed type.

  | 
| [__()](https://developer.wordpress.org/reference/functions/__/)`wp-includes/l10n.php` |

Retrieves the translation of $text.

  | 
| [_deprecated_argument()](https://developer.wordpress.org/reference/functions/_deprecated_argument/)`wp-includes/functions.php` |

Marks a function argument as deprecated and inform when it has been used.

  | 
| [home_url()](https://developer.wordpress.org/reference/functions/home_url/)`wp-includes/link-template.php` |

Retrieves the URL for the current site where the front end is accessible.

  | 
| [apply_filters()](https://developer.wordpress.org/reference/functions/apply_filters/)`wp-includes/plugin.php` |

Calls the callback functions that have been added to a filter hook.

  | 
| [get_option()](https://developer.wordpress.org/reference/functions/get_option/)`wp-includes/option.php` |

Retrieves an option value based on an option name.

  |

[Show 7 more](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#)
[Show less](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#)

| Used by | Description | 
| [_wp_get_entity_view_config_posttype_wp_template()](https://developer.wordpress.org/reference/functions/_wp_get_entity_view_config_posttype_wp_template/)`wp-includes/view-config.php` |

Provides the view configuration for the `wp_template` post type.

  | 
| [wp_send_note_notification()](https://developer.wordpress.org/reference/functions/wp_send_note_notification/)`wp-includes/comment.php` |

Sends a single note mention notification email.

  | 
| [WP_MS_Sites_List_Table::get_primary_column_aria_label()](https://developer.wordpress.org/reference/classes/wp_ms_sites_list_table/get_primary_column_aria_label/)`wp-admin/includes/class-wp-ms-sites-list-table.php` |

Returns a clean label for the primary (URL) column’s row header `aria-label`.

  | 
| [WP_Media_List_Table::get_primary_column_aria_label()](https://developer.wordpress.org/reference/classes/wp_media_list_table/get_primary_column_aria_label/)`wp-admin/includes/class-wp-media-list-table.php` |

Returns a clean label for the primary (File) column’s row header `aria-label`.

  | 
| [WP_Links_List_Table::get_primary_column_aria_label()](https://developer.wordpress.org/reference/classes/wp_links_list_table/get_primary_column_aria_label/)`wp-admin/includes/class-wp-links-list-table.php` |

Returns a clean label for the primary (Name) column’s row header `aria-label`.

  | 
| [WP_Debug_Data::get_wp_core()](https://developer.wordpress.org/reference/classes/wp_debug_data/get_wp_core/)`wp-admin/includes/class-wp-debug-data.php` |

Gets the WordPress core section of the debug data.

  | 
| [WP_Customize_Nav_Menu_Item_Setting::js_value()](https://developer.wordpress.org/reference/classes/wp_customize_nav_menu_item_setting/js_value/)`wp-includes/customize/class-wp-customize-nav-menu-item-setting.php` |

Prepares the value for editing on the client.

  | 
| [wp_register_core_abilities()](https://developer.wordpress.org/reference/functions/wp_register_core_abilities/)`wp-includes/abilities.php` |

Registers the default core abilities.

  | 
| [WP_Script_Modules::get_src()](https://developer.wordpress.org/reference/classes/wp_script_modules/get_src/)`wp-includes/class-wp-script-modules.php` |

Gets the versioned URL for a script module src.

  | 
| [WP_REST_Templates_Controller::get_wp_templates_author_text_field()](https://developer.wordpress.org/reference/classes/wp_rest_templates_controller/get_wp_templates_author_text_field/)`wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php` |

Returns a human readable text for the author of the template.

  | 
| [WP_REST_URL_Details_Controller::prepare_metadata_for_output()](https://developer.wordpress.org/reference/classes/wp_rest_url_details_controller/prepare_metadata_for_output/)`wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php` |

Prepares the metadata by: – stripping all HTML tags and tag entities.

  | 
| [WP_REST_URL_Details_Controller::get_remote_url()](https://developer.wordpress.org/reference/classes/wp_rest_url_details_controller/get_remote_url/)`wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php` |

Retrieves the document title from a remote URL.

  | 
| [WP_REST_Widget_Types_Controller::get_widgets()](https://developer.wordpress.org/reference/classes/wp_rest_widget_types_controller/get_widgets/)`wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php` |

Normalize array of widgets.

  | 
| [WP_Recovery_Mode_Email_Service::get_debug()](https://developer.wordpress.org/reference/classes/wp_recovery_mode_email_service/get_debug/)`wp-includes/class-wp-recovery-mode-email-service.php` |

Return debug information in an easy to manipulate format.

  | 
| [validate_plugin_requirements()](https://developer.wordpress.org/reference/functions/validate_plugin_requirements/)`wp-admin/includes/plugin.php` |

Validates the plugin requirements for WordPress version and PHP version.

  | 
| [WP_Privacy_Policy_Content::get_default_content()](https://developer.wordpress.org/reference/classes/wp_privacy_policy_content/get_default_content/)`wp-admin/includes/class-wp-privacy-policy-content.php` |

Returns the default suggested privacy policy content.

  | 
| [wp_privacy_generate_personal_data_export_file()](https://developer.wordpress.org/reference/functions/wp_privacy_generate_personal_data_export_file/)`wp-admin/includes/privacy-tools.php` |

Generate the personal data export file.

  | 
| [WP_Widget_Text::is_legacy_instance()](https://developer.wordpress.org/reference/classes/wp_widget_text/is_legacy_instance/)`wp-includes/widgets/class-wp-widget-text.php` |

Determines whether a given instance is legacy and should bypass using TinyMCE.

  | 
| [_WP_Editors::default_settings()](https://developer.wordpress.org/reference/classes/_wp_editors/default_settings/)`wp-includes/class-wp-editor.php` |

Returns the default TinyMCE settings.

  | 
| [the_embed_site_title()](https://developer.wordpress.org/reference/functions/the_embed_site_title/)`wp-includes/embed.php` |

Prints the necessary markup for the site title in an embed template.

  | 
| [get_custom_logo()](https://developer.wordpress.org/reference/functions/get_custom_logo/)`wp-includes/general-template.php` |

Returns a custom logo, linked to home unless the theme supports removing the link on the home page.

  | 
| [WP_Customize_Site_Icon_Control::content_template()](https://developer.wordpress.org/reference/classes/wp_customize_site_icon_control/content_template/)`wp-includes/customize/class-wp-customize-site-icon-control.php` |

Renders a JS template for the content of the site icon control.

  | 
| [get_post_embed_html()](https://developer.wordpress.org/reference/functions/get_post_embed_html/)`wp-includes/embed.php` |

Retrieves the embed code for a specific post.

  | 
| [get_oembed_response_data()](https://developer.wordpress.org/reference/functions/get_oembed_response_data/)`wp-includes/embed.php` |

Retrieves the oEmbed response data for a given post.

  | 
| [wp_get_document_title()](https://developer.wordpress.org/reference/functions/wp_get_document_title/)`wp-includes/general-template.php` |

Returns document title for the current page.

  | 
| [get_language_attributes()](https://developer.wordpress.org/reference/functions/get_language_attributes/)`wp-includes/general-template.php` |

Gets the language attributes for the ‘html’ tag.

  | 
| [WP_Customize_Nav_Menus::search_available_items_query()](https://developer.wordpress.org/reference/classes/wp_customize_nav_menus/search_available_items_query/)`wp-includes/class-wp-customize-nav-menus.php` |

Performs post queries for available-item searching.

  | 
| [WP_Customize_Nav_Menus::customize_register()](https://developer.wordpress.org/reference/classes/wp_customize_nav_menus/customize_register/)`wp-includes/class-wp-customize-nav-menus.php` |

Adds the customizer settings and controls.

  | 
| [WP_Customize_Nav_Menus::load_available_items_query()](https://developer.wordpress.org/reference/classes/wp_customize_nav_menus/load_available_items_query/)`wp-includes/class-wp-customize-nav-menus.php` |

Performs the post_type and taxonomy queries for loading available menu items.

  | 
| [WP_Customize_Media_Control::to_json()](https://developer.wordpress.org/reference/classes/wp_customize_media_control/to_json/)`wp-includes/customize/class-wp-customize-media-control.php` |

Refresh the parameters passed to the JavaScript via JSON.

  | 
| [wp_install_maybe_enable_pretty_permalinks()](https://developer.wordpress.org/reference/functions/wp_install_maybe_enable_pretty_permalinks/)`wp-admin/includes/upgrade.php` |

Maybe enable pretty permalinks on installation.

  | 
| [WP_Customize_Panel::json()](https://developer.wordpress.org/reference/classes/wp_customize_panel/json/)`wp-includes/class-wp-customize-panel.php` |

Gather the parameters passed to client JavaScript via JSON.

  | 
| [WP_Customize_Section::json()](https://developer.wordpress.org/reference/classes/wp_customize_section/json/)`wp-includes/class-wp-customize-section.php` |

Gather the parameters passed to client JavaScript via JSON.

  | 
| [wpview_media_sandbox_styles()](https://developer.wordpress.org/reference/functions/wpview_media_sandbox_styles/)`wp-includes/media.php` |

Returns the URLs for CSS files used in an iframe-sandbox’d TinyMCE media view.

  | 
| [login_footer()](https://developer.wordpress.org/reference/functions/login_footer/)`wp-login.php` |

Outputs the footer for the login page.

  | 
| [login_header()](https://developer.wordpress.org/reference/functions/login_header/)`wp-login.php` |

Outputs the login page header.

  | 
| [WP_Automatic_Updater::send_email()](https://developer.wordpress.org/reference/classes/wp_automatic_updater/send_email/)`wp-admin/includes/class-wp-automatic-updater.php` |

Sends an email upon the completion or failure of a background core update.

  | 
| [WP_Automatic_Updater::send_debug_email()](https://developer.wordpress.org/reference/classes/wp_automatic_updater/send_debug_email/)`wp-admin/includes/class-wp-automatic-updater.php` |

Prepares and sends an email of a full log of background update results, useful for debugging and geekery.

  | 
| [export_wp()](https://developer.wordpress.org/reference/functions/export_wp/)`wp-admin/includes/export.php` |

Generates the WXR export file for download.

  | 
| [_access_denied_splash()](https://developer.wordpress.org/reference/functions/_access_denied_splash/)`wp-admin/includes/ms.php` |

Displays an access denied message when a user tries to view a site’s dashboard they do not have access to.

  | 
| [core_update_footer()](https://developer.wordpress.org/reference/functions/core_update_footer/)`wp-admin/includes/update.php` |

Returns core update footer message.

  | 
| [update_right_now_message()](https://developer.wordpress.org/reference/functions/update_right_now_message/)`wp-admin/includes/update.php` |

Displays WordPress version and active theme in the ‘At a Glance’ dashboard widget.

  | 
| [install_plugin_information()](https://developer.wordpress.org/reference/functions/install_plugin_information/)`wp-admin/includes/plugin-install.php` |

Displays plugin information in dialog box form.

  | 
| [WP_Plugin_Install_List_Table::display_rows()](https://developer.wordpress.org/reference/classes/wp_plugin_install_list_table/display_rows/)`wp-admin/includes/class-wp-plugin-install-list-table.php` |

Generates the list table rows.

  | 
| [WP_Plugin_Install_List_Table::prepare_items()](https://developer.wordpress.org/reference/classes/wp_plugin_install_list_table/prepare_items/)`wp-admin/includes/class-wp-plugin-install-list-table.php` |  | 
| [_fix_attachment_links()](https://developer.wordpress.org/reference/functions/_fix_attachment_links/)`wp-admin/includes/post.php` |

Replaces hrefs of attachment anchors with up-to-date permalinks.

  | 
| [admin_created_user_email()](https://developer.wordpress.org/reference/functions/admin_created_user_email/)`wp-admin/includes/user.php` |  | 
| [wp_mail()](https://developer.wordpress.org/reference/functions/wp_mail/)`wp-includes/pluggable.php` |

Sends an email, similar to PHP’s mail function.

  | 
| [wp_admin_css_uri()](https://developer.wordpress.org/reference/functions/wp_admin_css_uri/)`wp-includes/general-template.php` |

Displays the URL of a WordPress admin CSS file.

  | 
| [get_the_generator()](https://developer.wordpress.org/reference/functions/get_the_generator/)`wp-includes/general-template.php` |

Creates the generator XML or Comment for RSS, ATOM, etc.

  | 
| [feed_links()](https://developer.wordpress.org/reference/functions/feed_links/)`wp-includes/general-template.php` |

Displays the links to the general feeds.

  | 
| [feed_links_extra()](https://developer.wordpress.org/reference/functions/feed_links_extra/)`wp-includes/general-template.php` |

Displays the links to the extra feeds such as category feeds.

  | 
| [bloginfo()](https://developer.wordpress.org/reference/functions/bloginfo/)`wp-includes/general-template.php` |

Displays information about the current site.

  | 
| [get_index_rel_link()](https://developer.wordpress.org/reference/functions/get_index_rel_link/)`wp-includes/deprecated.php` |

Get site index relational link.

  | 
| [WP::send_headers()](https://developer.wordpress.org/reference/classes/wp/send_headers/)`wp-includes/class-wp.php` |

Sends additional HTTP headers for caching, content type, etc.

  | 
| [WP_Http::request()](https://developer.wordpress.org/reference/classes/wp_http/request/)`wp-includes/class-wp-http.php` |

Send an HTTP request to a URI.

  | 
| [wp_nonce_ays()](https://developer.wordpress.org/reference/functions/wp_nonce_ays/)`wp-includes/functions.php` |

Displays “Are You Sure” message to confirm the action being taken.

  | 
| [cache_javascript_headers()](https://developer.wordpress.org/reference/functions/cache_javascript_headers/)`wp-includes/functions.php` |

Sets the HTTP headers for caching for 10 days with JavaScript content type.

  | 
| [WP_Widget_Meta::widget()](https://developer.wordpress.org/reference/classes/wp_widget_meta/widget/)`wp-includes/widgets/class-wp-widget-meta.php` |

Outputs the content for the current Meta widget instance.

  | 
| [get_pagenum_link()](https://developer.wordpress.org/reference/functions/get_pagenum_link/)`wp-includes/link-template.php` |

Retrieves the link for a page number.

  | 
| [wp_admin_bar_site_menu()](https://developer.wordpress.org/reference/functions/wp_admin_bar_site_menu/)`wp-includes/admin-bar.php` |

Adds the “Site Name” menu.

  | 
| [html_type_rss()](https://developer.wordpress.org/reference/functions/html_type_rss/)`wp-includes/feed.php` |

Displays the HTML type based on the blog setting.

  | 
| [fetch_feed()](https://developer.wordpress.org/reference/functions/fetch_feed/)`wp-includes/feed.php` |

Builds SimplePie object based on RSS or Atom feed from URL.

  | 
| [get_bloginfo_rss()](https://developer.wordpress.org/reference/functions/get_bloginfo_rss/)`wp-includes/feed.php` |

Retrieves RSS container for the bloginfo function.

  | 
| [wp_prepare_attachment_for_js()](https://developer.wordpress.org/reference/functions/wp_prepare_attachment_for_js/)`wp-includes/media.php` |

Prepares an attachment post object for JS, where it is expected to be JSON-encoded and fit into an Attachment model.

  | 
| [filter_SSL()](https://developer.wordpress.org/reference/functions/filter_ssl/)`wp-includes/ms-functions.php` |

Formats a URL to use https.

  | 
| [wp_xmlrpc_server::pingback_ping()](https://developer.wordpress.org/reference/classes/wp_xmlrpc_server/pingback_ping/)`wp-includes/class-wp-xmlrpc-server.php` |

Retrieves a pingback and registers it.

  | 
| [wp_xmlrpc_server::initialise_blog_option_info()](https://developer.wordpress.org/reference/classes/wp_xmlrpc_server/initialise_blog_option_info/)`wp-includes/class-wp-xmlrpc-server.php` |

Sets up blog options property.

  | 
| [WP_Customize_Widgets::enqueue_scripts()](https://developer.wordpress.org/reference/classes/wp_customize_widgets/enqueue_scripts/)`wp-includes/class-wp-customize-widgets.php` |

Enqueues scripts and styles for Customizer panel and export data to JavaScript.

  | 
| [wp_default_styles()](https://developer.wordpress.org/reference/functions/wp_default_styles/)`wp-includes/script-loader.php` |

Assigns default styles to $styles object.

  | 
| [weblog_ping()](https://developer.wordpress.org/reference/functions/weblog_ping/)`wp-includes/comment.php` |

Sends a pingback.

  | 
| [wp_default_scripts()](https://developer.wordpress.org/reference/functions/wp_default_scripts/)`wp-includes/script-loader.php` |

Registers all WordPress scripts.

  | 
| [pingback()](https://developer.wordpress.org/reference/functions/pingback/)`wp-includes/comment.php` |

Pings back the links found in a post.

  | 
| [wp_print_media_templates()](https://developer.wordpress.org/reference/functions/wp_print_media_templates/)`wp-includes/media-template.php` |

Prints the templates used in the media manager.

  |

[Show 69 more](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#)
[Show less](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#)

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#changelog)󠁿

| Version | Description | 
| [0.71](https://developer.wordpress.org/reference/since/0.71/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#user-contributed-notes)󠁿

 1.   [Skip to note 7 content](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#comment-content-363)
 2.    [Codex](https://profiles.wordpress.org/codex/)  [  11 years ago  ](https://developer.wordpress.org/reference/functions/get_bloginfo/#comment-363)
 3.  [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_bloginfo%2F%23comment-363)
     Vote results for this note: 4[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_bloginfo%2F%23comment-363)
 4.  **Network Tagline**
      Using this example, you can obtain the name and description
     for the network home:
 5.      ```php
         <?php
         switch_to_blog(1);
         $site_title = get_bloginfo( 'name' );
         $site_url = network_site_url( '/' );
         $site_description = get_bloginfo( 'description' );
         restore_current_blog();
         echo 'The Network Home URL is: ' . $site_url;
         echo 'The Network Home Name is: ' . $site_title;
         echo 'The Network Home Tagline is: ' . $site_description;  
         ?>
         ```
     
 6.  results in this being displayed on your blog:
 7.  The Network Home URL is: [http://example.com/](http://example.com/)
      The Network
     Home Name is: Example The Network Home Tagline is: The example site
 8.   [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_bloginfo%2F%3Freplytocom%3D363%23feedback-editor-363)
 9.   [Skip to note 8 content](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#comment-content-2467)
 10.   [Rehmat Alam](https://profiles.wordpress.org/rehmatworks/)  [  9 years ago  ](https://developer.wordpress.org/reference/functions/get_bloginfo/#comment-2467)
 11. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_bloginfo%2F%23comment-2467)
     Vote results for this note: 4[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_bloginfo%2F%23comment-2467)
 12. There should be a possibility to return the array of all available info. Although
     this might not be a good practice in terms of performance this should help someone
     who needs to fetch all info about a website. Note that I’ve omitted some fields
     that might not be that important:
 13.     ```php
         function bloginfo_array() {
             $fields = array('name', 'description', 'wpurl', 'url', 'admin_email', 'charset', 'version', 'html_type', 'text_direction', 'language');
             $data = array();
             foreach($fields as $field) {
                 $data[$field] = get_bloginfo($field);
             }
             return $data;
         }
         ```
     
 14.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_bloginfo%2F%3Freplytocom%3D2467%23feedback-editor-2467)
 15.  [Skip to note 9 content](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#comment-content-360)
 16.   [Codex](https://profiles.wordpress.org/codex/)  [  11 years ago  ](https://developer.wordpress.org/reference/functions/get_bloginfo/#comment-360)
 17. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_bloginfo%2F%23comment-360)
     Vote results for this note: 2[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_bloginfo%2F%23comment-360)
 18. **Default Usage**
      The default usage assigns your blog’s title to the variable`
     $blog_title`.
 19.     ```php
         <?php $blog_title = get_bloginfo(); ?>
         ```
     
 20.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_bloginfo%2F%3Freplytocom%3D360%23feedback-editor-360)
 21.  [Skip to note 10 content](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#comment-content-362)
 22.   [Codex](https://profiles.wordpress.org/codex/)  [  11 years ago  ](https://developer.wordpress.org/reference/functions/get_bloginfo/#comment-362)
 23. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_bloginfo%2F%23comment-362)
     Vote results for this note: 2[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_bloginfo%2F%23comment-362)
 24. **Blog Tagline**
      Using this example:
 25.     ```php
         <?php printf( esc_html__( 'Your Blog Tagline is: %s', 'textdomain' ), get_bloginfo ( 'description' ) ); ?><br />
         ```
     
 26. Results in this being displayed on your blog:
 27. Your Blog Tagline is: All things WordPress
 28.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_bloginfo%2F%3Freplytocom%3D362%23feedback-editor-362)
 29.  [Skip to note 11 content](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#comment-content-361)
 30.   [Codex](https://profiles.wordpress.org/codex/)  [  11 years ago  ](https://developer.wordpress.org/reference/functions/get_bloginfo/#comment-361)
 31. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_bloginfo%2F%23comment-361)
     Vote results for this note: 1[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_bloginfo%2F%23comment-361)
 32. **Blog Title**
      This example assign your blog’s title to the variable `$blog_title`.
     This returns the same result as the default usage.
 33.     ```php
         <?php $blog_title = get_bloginfo( 'name' ); ?>
         ```
     
 34.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_bloginfo%2F%3Freplytocom%3D361%23feedback-editor-361)
 35.  [Skip to note 12 content](https://developer.wordpress.org/reference/functions/get_bloginfo/?output_format=md#comment-content-2432)
 36.   [mslade](https://profiles.wordpress.org/mslade/)  [  9 years ago  ](https://developer.wordpress.org/reference/functions/get_bloginfo/#comment-2432)
 37. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_bloginfo%2F%23comment-2432)
     Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_bloginfo%2F%23comment-2432)
 38. The comments regarding `get_bloginfo(‘url’)` are misleading. It will *not* necessarily
     return what is set in Settings > General. The protocol (“http” or “https”) will
     be determined by the value of `[is_ssl()](https://developer.wordpress.org/reference/functions/is_ssl/)`,
     which detects if the current request is over SSL or not.
 39.  * @mslade Yes, this is why hooks exist in WordPress, and [is_ssl()](https://developer.wordpress.org/reference/functions/is_ssl/)(
        https can be forced) has priority over the returned URL setting since the value
        can be modified by a filter. By default, if no filter has been applied then
        the URL value would be returned as it is.
      * [john zenith](https://profiles.wordpress.org/zenithcity/) [6 years ago](https://developer.wordpress.org/reference/functions/get_bloginfo/#comment-4051)
 40.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_bloginfo%2F%3Freplytocom%3D2432%23feedback-editor-2432)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_bloginfo%2F)
before being able to contribute a note or feedback.