in_array( "2meet-data-optimizer-{$slug}-addon/2meet-data-optimizer-{$slug}-addon.php", $active, true ) ) ); } /** * Print the notice for administrators when any deprecated AddOn is active. * * @return void */ public static function render(): void { if ( ! current_user_can( 'manage_options' ) ) { return; } $active = self::active(); if ( empty( $active ) ) { return; } $names = implode( ', ', array_map( static fn( string $slug ): string => "2meet-data-optimizer-{$slug}-addon", $active ) ); printf( '
%s %s
%s