myblogs_options
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; }
- $settings_html(строка)
- The settings HTML markup.
По умолчанию: '' - $context(строка)
- Context of the setting (global or site-specific).
По умолчанию: 'global'
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
В файле: /wp-admin/my-sites.php
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 );