enable_update_services_configuration хук-фильтрWP 3.0.0

Filters whether to enable the Update Services section in the Writing settings screen.

Использование

add_filter( 'enable_update_services_configuration', 'wp_kama_enable_update_services_configuration_filter' );

/**
 * Function for `enable_update_services_configuration` filter-hook.
 * 
 * @param bool $enable Whether to enable the Update Services settings area.
 *
 * @return bool
 */
function wp_kama_enable_update_services_configuration_filter( $enable ){

	// filter...
	return $enable;
}
$enable(true|false)
Whether to enable the Update Services settings area.
По умолчанию: true

Список изменений

С версии 3.0.0 Введена.

Где вызывается хук

В файле: /wp-admin/options-writing.php
enable_update_services_configuration
wp-admin/options-writing.php 217
if ( apply_filters( 'enable_update_services_configuration', true ) ) {
wp-admin/options-writing.php 41
if ( apply_filters( 'enable_update_services_configuration', true ) ) {

Где используется хук в WordPress

wp-includes/ms-default-filters.php 110
add_filter( 'enable_update_services_configuration', '__return_false' );