Current File : /home/bdmcricketindia.in/public_html/wp-includes/class-wp-role.php
<?php
/**
 * User API: WP_Role class
 *
 * @package WordPress
 * @subpackage Users
 * @since 4.4.0
 */

/**
 * Core class used to extend the user roles API.
 *
 * @since 2.0.0
 */
#[AllowDynamicProperties]
class WP_Role {
	/**
	 * Role name.
	 *
	 * @since 2.0.0
	 * @var string
	 */
	public $name;

	/**
	 * List of capabilities the role contains.
	 *
	 * @since 2.0.0
	 * @var bool[] Array of key/value pairs where keys represent a capability name and boolean values
	 *             represent whether the role has that capability.
	 */
	public $capabilities;

	/**
	 * Constructor - Set up object properties.
	 *
	 * The list of capabilities must have the key as the name of the capability
	 * and the value a boolean of whether it is granted to the role.
	 *
	 * @since 2.0.0
	 *
	 * @param string $role         Role name.
	 * @param bool[] $capabilities Array of key/value pairs where keys represent a capability name and boolean values
	 *                             represent whether the role has that capability.
	 */
	public function __construct( $role, $capabilities ) {
		$this->name         = $role;
		$this->capabilities = $capabilities;
	}

	/**
	 * Assign role a capability.
	 *
	 * @since 2.0.0
	 *
	 * @param string $cap   Capability name.
	 * @param bool   $grant Whether role has capability privilege.
	 */
	public function add_cap( $cap, $grant = true ) {
		$this->capabilities[ $cap ] = $grant;
		wp_roles()->add_cap( $this->name, $cap, $grant );
	}

	/**
	 * Removes a capability from a role.
	 *
	 * @since 2.0.0
	 *
	 * @param string $cap Capability name.
	 */
	public function remove_cap( $cap ) {
		unset( $this->capabilities[ $cap ] );
		wp_roles()->remove_cap( $this->name, $cap );
	}

	/**
	 * Determines whether the role has the given capability.
	 *
	 * @since 2.0.0
	 *
	 * @param string $cap Capability name.
	 * @return bool Whether the role has the given capability.
	 */
	public function has_cap( $cap ) {
		/**
		 * Filters which capabilities a role has.
		 *
		 * @since 2.0.0
		 *
		 * @param bool[] $capabilities Array of key/value pairs where keys represent a capability name and boolean values
		 *                             represent whether the role has that capability.
		 * @param string $cap          Capability name.
		 * @param string $name         Role name.
		 */
		$capabilities = apply_filters( 'role_has_cap', $this->capabilities, $cap, $this->name );

		if ( ! empty( $capabilities[ $cap ] ) ) {
			return $capabilities[ $cap ];
		} else {
			return false;
		}
	}
}
BDM Cricket India: tips, teams, tournaments

Recent Posts

Are Royal Reels the Key to Your Next Big Win_3

Are Royal Reels the Key to Your Next Big Win? Understanding the Mechanics of Royal Reels Popular Themes in Royal Reels Strategies for Maximizing Your Wins The Role of Technology in Enhancing Gameplay Social Aspects of Gaming Royal Reels Conclusion Are Royal Reels the Key to Your Next Big Win? …

Read More »

75% of Players Prefer Royal Reels for Unforgettable Wins!_1

75% of Players Prefer Royal Reels for Unforgettable Wins! The Allure of Royal Reels Innovative Features Building Community and Engagement The Mechanics Behind Royal Reels Payout Structures Strategies for Playing Royal Reels Staying Informed The Future of Royal Reels Incorporating Mobile Gaming Conclusion and Final Thoughts 75% of Players Prefer …

Read More »

Best UK Casino Sites 2025 Trusted Reviews and Top Picks.715

Best UK Casino Sites 2025 – Trusted Reviews and Top Picks ▶️ PLAY Содержимое Top 5 Online Casinos for UK Players Trustly Casinos: A Secure and Reliable Option Apple Pay Casino: A Convenient and Secure Option How to Choose the Best UK Online Casino for Your Needs Are you ready …

Read More »

n Yaxşı Azərbaycan Kazinoları 2025 Mobil Uyğun Oyun Saytları.976

Ən Yaxşı Azərbaycan Kazinoları 2025 – Mobil Uyğun Oyun Saytları ▶️ OYNA Содержимое Onlayn Kazinoların Ən Yaxşı Növləri Kazino Oyunları Növləri Onlayn Kazinoların Xüsusiyyətləri Mobil Uyğun Onlayn Kazinoların Xüsiyyətləri Ən Etibarlı Onlayn Kazinoların Seçimi Etibarlı Onlayn Kazinoların Xüsusiyyətləri Kazino Oyunlarının Çeşidi Onlayn Kazinolarda Qeydiyyat və Oyunun Başlanğıcı Qeydiyyat Prosedi Oyunun …

Read More »

CASHlib Casinos in Deutschland – Was bieten sie?

CASHlib Casinos gewinnen in Deutschland immer mehr an Bedeutung. Diese Casinos ermöglichen es Spielern, anonym und sicher mit Prepaid-Guthaben zu bezahlen – ganz ohne Bankverbindung oder Kreditkarte. Besonders für Nutzer, die auf Datenschutz und schnelle Transaktionen Wert legen, sind sie eine interessante Alternative.

Was bieten CASHlib Casinos?

  • Schnelle und anonyme Einzahlungen ohne Registrierung bei Drittanbietern
  • Breites Spielangebot von Slots bis zu Live-Dealer-Spielen
  • Regelmäßige Aktionen wie Freispiele und Cashback
  • Attraktive Willkommensboni für neue Spieler
  • EU-lizenzierte Anbieter mit hohen Sicherheitsstandards

Ein großer Vorteil von CASHlib ist, dass keine sensiblen Bankdaten im Casino hinterlegt werden müssen. Die Gutscheine sind online oder in vielen Verkaufsstellen erhältlich und können sofort verwendet werden. Dadurch entfällt auch die Notwendigkeit, persönliche Daten bei Einzahlungen preiszugeben – ein echter Pluspunkt für sicherheitsbewusste Spieler.

Viele spielothekgermany.com/de/spielothek/cashlib-casinos/ bieten zudem mobile Kompatibilität, einfache Menüführung und professionellen Spielerschutz. Wer nach einem unkomplizierten Zahlungsweg mit solider Auswahl an Spielen und Bonusangeboten sucht, wird bei diesen Plattformen fündig. Die Kombination aus Bequemlichkeit, Sicherheit und einem attraktiven Bonusangebot macht CASHlib Casinos zu einer beliebten Wahl für deutsche Nutzer.

slot 7