Filter hook 'enable_update_services_configuration'

in WP Core File wp-admin/options-writing.php at line 217

View Source

enable_update_services_configuration

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

Hook Information

File Location wp-admin/options-writing.php View on GitHub
Hook Type Filter
Line Number 217

Hook Parameters

Type Name Description
bool $enable Whether to enable the Update Services settings area. Default true.

Usage Examples

Basic Usage
<?php
// Hook into enable_update_services_configuration
add_filter('enable_update_services_configuration', 'my_custom_filter', 10, 1);

function my_custom_filter($enable) {
    // Your custom filtering logic here
    return $enable;
}

Source Code Context

wp-admin/options-writing.php:217 - How this hook is used in WordPress core
<?php
 212   *
 213   * @since 3.0.0
 214   *
 215   * @param bool $enable Whether to enable the Update Services settings area. Default true.
 216   */
 217  if ( apply_filters( 'enable_update_services_configuration', true ) ) {
 218  	?>
 219  <h2 class="title"><?php _e( 'Update Services' ); ?></h2>
 220  
 221  	<?php if ( '1' === get_option( 'blog_public' ) ) : ?>
 222  

PHP Documentation

<?php
/**
 * Filters whether to enable the Update Services section in the Writing settings screen.
 *
 * @since 3.0.0
 *
 * @param bool $enable Whether to enable the Update Services settings area. Default true.
 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-admin/options-writing.php
Related Hooks

Related hooks will be displayed here in future updates.