HEX
Server: Apache/2.4.63 (Unix)
System: Linux TOMS-220NAS 4.4.302+ #86009 SMP Wed Nov 26 18:19:17 CST 2025 x86_64
User: flavio87 (1026)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: /volume1/web/tom-marchisa/wp-content/plugins/nextgen-gallery/src/WPCLI/Notifications.php
<?php

namespace Imagely\NGG\WPCLI;

use Imagely\NGG\Settings\Settings;

/**
 * WP-CLI Notifications management commands for NextGEN Gallery.
 *
 * Provides notification-related WP-CLI commands for NextGEN Gallery.
 */
class Notifications {

	/**
	 * Clear all dismissed notifications handled by C_Admin_Notification_Manager
	 *
	 * @param array $args       Command arguments.
	 * @param array $assoc_args Associative arguments.
	 * @synopsis
	 */
	public function clear_dismissed( $args, $assoc_args ) {
		$settings = Settings::get_instance();
		$settings->set( 'dismissed_notifications', [] );
		$settings->set( 'gallery_created_after_reviews_introduced', false );
		$settings->save();
	}
}