myblogs_options filter-hookWP 3.0.0

Filters the settings HTML markup in the Global Settings section on the My Sites screen.

By default, the Global Settings section is hidden. Passing a non-empty string to this filter will enable the section, and allow new settings to be added, either globally or for specific sites.


add_filter( 'myblogs_options', 'wp_kama_myblogs_options_filter', 10, 2 );

 * Function for `myblogs_options` filter-hook.
 * @param string $settings_html The settings HTML markup.
 * @param string $context       Context of the setting (global or site-specific).
 * @return string
function wp_kama_myblogs_options_filter( $settings_html, $context ){

	// filter...
	return $settings_html;
The settings HTML markup.
Default: ''
Context of the setting (global or site-specific).
Default: 'global'


Since 3.0.0 Introduced.

Where the hook is called

In file: /wp-admin/my-sites.php
wp-admin/my-sites.php 110
$settings_html = apply_filters( 'myblogs_options', '', 'global' );
wp-admin/my-sites.php 144
echo apply_filters( 'myblogs_options', '', $user_blog );

Where the hook is used in WordPress

Usage not found.