0` lifts `get_sites()`'s default cap of 100. User meta lives in * the network-wide users tables, so the notice flag is cleared once, for all * users. * * @return void */ function agentency_chatbot_uninstall() { if ( is_multisite() ) { $site_ids = get_sites( array( 'fields' => 'ids', 'number' => 0, ) ); foreach ( $site_ids as $site_id ) { switch_to_blog( (int) $site_id ); agentency_chatbot_uninstall_site(); restore_current_blog(); } } else { agentency_chatbot_uninstall_site(); } delete_metadata( 'user', 0, 'agentency_chatbot_notice_dismissed', '', true ); } agentency_chatbot_uninstall();