'ids', 'number' => 101, 'orderby' => 'id', 'order' => 'ASC' ] ); if ( count( $advocate_site_ids ) > 100 ) { wp_die( esc_html__( 'Automatic Advocate uninstall supports at most 100 sites. No sites were cleaned. Ask your network administrator to follow the per-site WP-CLI cleanup instructions in the plugin readme before removing the plugin files.', 'advocatemcp-structured-data' ) ); } foreach ( $advocate_site_ids as $advocate_site_id ) { switch_to_blog( $advocate_site_id ); try { $advocate_uninstall_site(); } finally { restore_current_blog(); } } } else { $advocate_uninstall_site(); }