myblogs_options WordPress Filter Hook

The myblogs_options hook allows you to modify the options for your blog. This hook is called when the options are first loaded, and allows you to change the default values for your blog.

apply_filters( 'myblogs_options', string $settings_html, string $context ) #

Enable the Global Settings section on the My Sites screen.


Description

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.


Top ↑

Parameters

$settings_html

(string)The settings HTML markup. Default empty.

$context

(string)Context of the setting (global or site-specific). Default 'global'.


Top ↑

Source

File: wp-admin/my-sites.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
MU (3.0.0)Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.