network_sites_updated_message_(action)
Filters a specific, non-default, site-updated message in the Network admin.
The dynamic portion of the hook name, $action, refers to the non-default site update action.
Использование
add_filter( 'network_sites_updated_message_(action)', 'wp_kama_network_sites_updated_message_action_filter' );
/**
* Function for `network_sites_updated_message_(action)` filter-hook.
*
* @param string $msg The update message.
*
* @return string
*/
function wp_kama_network_sites_updated_message_action_filter( $msg ){
// filter...
return $msg;
}
- $msg(строка)
- The update message.
По умолчанию: 'Settings saved'
Список изменений
| С версии 3.1.0 | Введена. |
Где вызывается хук
В файле: /wp-admin/network/sites.php
network_sites_updated_message_(action)
wp-admin/network/sites.php 380
$msg = apply_filters( "network_sites_updated_message_{$action}", __( 'Settings saved.' ) );