From 3a0f472991ea441fdda626c35c17328c1dd7bd8f Mon Sep 17 00:00:00 2001 From: Rolly Bueno Date: Fri, 3 Oct 2025 20:03:49 +0800 Subject: [PATCH] Docs: Replace outdated plugin reference with code example for enabling Update Services in Multisite --- wordpress/update-services.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/wordpress/update-services.md b/wordpress/update-services.md index 55ccdd06..669fc4bf 100644 --- a/wordpress/update-services.md +++ b/wordpress/update-services.md @@ -27,6 +27,19 @@ http://ping.blo.gs/ An alternative is [Feed Shark](https://feedshark.brainbliss.com/), which pings over 60 services for free. ## WordPress Multisite Network -By default, editing the Ping Services for a WordPress Multisite network site is disabled. This can be re-enabled with a plugin such as the [Activate Update Services](https://wordpress.org/plugins/activate-update-services/) plugin. - +By default, editing the Ping Services field is disabled for individual sites in a WordPress Multisite network. To restore this option, you can add a small custom plugin or must-use plugin with the following code: +``` +add_action( 'init', function() { + if ( is_multisite() ) { + // Allow the Update Services configuration screen to appear. + add_filter( 'enable_update_services_configuration', '__return_true', 11 ); + + // Whitelist the 'ping_sites' option so changes can be saved to the database. + add_filter( 'whitelist_options', function( $options ) { + $options['writing'][] = 'ping_sites'; + return $options; + }, 11 ); + } +} ); +```