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

---

# wp_xmlrpc_server::initialise_blog_option_info()

## In this article

 * [Description](https://developer.wordpress.org/reference/classes/wp_xmlrpc_server/initialise_blog_option_info/?output_format=md#description)
 * [Source](https://developer.wordpress.org/reference/classes/wp_xmlrpc_server/initialise_blog_option_info/?output_format=md#source)
 * [Hooks](https://developer.wordpress.org/reference/classes/wp_xmlrpc_server/initialise_blog_option_info/?output_format=md#hooks)
 * [Related](https://developer.wordpress.org/reference/classes/wp_xmlrpc_server/initialise_blog_option_info/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_xmlrpc_server/initialise_blog_option_info/?output_format=md#changelog)

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

Sets up blog options property.

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

Passes property through [‘xmlrpc_blog_options’](https://developer.wordpress.org/reference/hooks/xmlrpc_blog_options/)
filter.

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

    ```php
    public function initialise_blog_option_info() {
    	$this->blog_options = array(
    		// Read-only options.
    		'software_name'           => array(
    			'desc'     => __( 'Software Name' ),
    			'readonly' => true,
    			'value'    => 'WordPress',
    		),
    		'software_version'        => array(
    			'desc'     => __( 'Software Version' ),
    			'readonly' => true,
    			'value'    => get_bloginfo( 'version' ),
    		),
    		'blog_url'                => array(
    			'desc'     => __( 'WordPress Address (URL)' ),
    			'readonly' => true,
    			'option'   => 'siteurl',
    		),
    		'home_url'                => array(
    			'desc'     => __( 'Site Address (URL)' ),
    			'readonly' => true,
    			'option'   => 'home',
    		),
    		'login_url'               => array(
    			'desc'     => __( 'Login Address (URL)' ),
    			'readonly' => true,
    			'value'    => wp_login_url(),
    		),
    		'admin_url'               => array(
    			'desc'     => __( 'The URL to the admin area' ),
    			'readonly' => true,
    			'value'    => get_admin_url(),
    		),
    		'image_default_link_type' => array(
    			'desc'     => __( 'Image default link type' ),
    			'readonly' => true,
    			'option'   => 'image_default_link_type',
    		),
    		'image_default_size'      => array(
    			'desc'     => __( 'Image default size' ),
    			'readonly' => true,
    			'option'   => 'image_default_size',
    		),
    		'image_default_align'     => array(
    			'desc'     => __( 'Image default align' ),
    			'readonly' => true,
    			'option'   => 'image_default_align',
    		),
    		'template'                => array(
    			'desc'     => __( 'Template' ),
    			'readonly' => true,
    			'option'   => 'template',
    		),
    		'stylesheet'              => array(
    			'desc'     => __( 'Stylesheet' ),
    			'readonly' => true,
    			'option'   => 'stylesheet',
    		),
    		'post_thumbnail'          => array(
    			'desc'     => __( 'Post Thumbnail' ),
    			'readonly' => true,
    			'value'    => current_theme_supports( 'post-thumbnails' ),
    		),

    		// Updatable options.
    		'time_zone'               => array(
    			'desc'     => __( 'Time Zone' ),
    			'readonly' => false,
    			'option'   => 'gmt_offset',
    		),
    		'blog_title'              => array(
    			'desc'     => __( 'Site Title' ),
    			'readonly' => false,
    			'option'   => 'blogname',
    		),
    		'blog_tagline'            => array(
    			'desc'     => __( 'Site Tagline' ),
    			'readonly' => false,
    			'option'   => 'blogdescription',
    		),
    		'date_format'             => array(
    			'desc'     => __( 'Date Format' ),
    			'readonly' => false,
    			'option'   => 'date_format',
    		),
    		'time_format'             => array(
    			'desc'     => __( 'Time Format' ),
    			'readonly' => false,
    			'option'   => 'time_format',
    		),
    		'users_can_register'      => array(
    			'desc'     => __( 'Allow new users to sign up' ),
    			'readonly' => false,
    			'option'   => 'users_can_register',
    		),
    		'thumbnail_size_w'        => array(
    			'desc'     => __( 'Thumbnail Width' ),
    			'readonly' => false,
    			'option'   => 'thumbnail_size_w',
    		),
    		'thumbnail_size_h'        => array(
    			'desc'     => __( 'Thumbnail Height' ),
    			'readonly' => false,
    			'option'   => 'thumbnail_size_h',
    		),
    		'thumbnail_crop'          => array(
    			'desc'     => __( 'Crop thumbnail to exact dimensions' ),
    			'readonly' => false,
    			'option'   => 'thumbnail_crop',
    		),
    		'medium_size_w'           => array(
    			'desc'     => __( 'Medium size image width' ),
    			'readonly' => false,
    			'option'   => 'medium_size_w',
    		),
    		'medium_size_h'           => array(
    			'desc'     => __( 'Medium size image height' ),
    			'readonly' => false,
    			'option'   => 'medium_size_h',
    		),
    		'medium_large_size_w'     => array(
    			'desc'     => __( 'Medium-Large size image width' ),
    			'readonly' => false,
    			'option'   => 'medium_large_size_w',
    		),
    		'medium_large_size_h'     => array(
    			'desc'     => __( 'Medium-Large size image height' ),
    			'readonly' => false,
    			'option'   => 'medium_large_size_h',
    		),
    		'large_size_w'            => array(
    			'desc'     => __( 'Large size image width' ),
    			'readonly' => false,
    			'option'   => 'large_size_w',
    		),
    		'large_size_h'            => array(
    			'desc'     => __( 'Large size image height' ),
    			'readonly' => false,
    			'option'   => 'large_size_h',
    		),
    		'default_comment_status'  => array(
    			'desc'     => __( 'Allow people to submit comments on new posts.' ),
    			'readonly' => false,
    			'option'   => 'default_comment_status',
    		),
    		'default_ping_status'     => array(
    			'desc'     => __( 'Allow link notifications from other blogs (pingbacks and trackbacks) on new posts.' ),
    			'readonly' => false,
    			'option'   => 'default_ping_status',
    		),
    	);

    	/**
    	 * Filters the XML-RPC blog options property.
    	 *
    	 * @since 2.6.0
    	 *
    	 * @param array $blog_options An array of XML-RPC blog options.
    	 */
    	$this->blog_options = apply_filters( 'xmlrpc_blog_options', $this->blog_options );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-xmlrpc-server.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/class-wp-xmlrpc-server.php#L536)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-xmlrpc-server.php#L536-L696)

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

 [apply_filters( ‘xmlrpc_blog_options’, array $blog_options )](https://developer.wordpress.org/reference/hooks/xmlrpc_blog_options/)

Filters the XML-RPC blog options property.

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

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

Retrieves the login URL.

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

Retrieves the URL to the admin area for a given site.

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

Checks a theme’s support for a given feature.

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

Retrieves the translation of $text.

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

Retrieves information about the current site.

  | 
| [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.

  |

[Show 4 more](https://developer.wordpress.org/reference/classes/wp_xmlrpc_server/initialise_blog_option_info/?output_format=md#)
[Show less](https://developer.wordpress.org/reference/classes/wp_xmlrpc_server/initialise_blog_option_info/?output_format=md#)

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

Registers all of the XMLRPC methods that XMLRPC server understands.

  |

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

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

## User Contributed Notes

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