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.

Usage

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;
}
$settings_html(string)
The settings HTML markup.
Default: ''
$context(string)
Context of the setting (global or site-specific).
Default: 'global'

Changelog

Since 3.0.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.