# content-control/2.0.12/inc/deprecated/class.is.php

Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks &amp; More, version 2.0.12. 50 lines.

- Page: https://pluginprobe.com/plugins/content-control/2.0.12/code/inc/deprecated/class.is.php
- Raw: https://pluginprobe.com/plugins/content-control/2.0.12/raw/inc/deprecated/class.is.php
- Modified: 2023-10-01T09:39:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/content-control/2.0.12/code/inc/deprecated/class.is.php#L10-L20`.

```php
<?php
/**
 * Deprecated Is class.
 *
 * @copyright (c) 2023, Code Atlantic LLC.
 * @package ContentControl
 */

namespace JP\CC;

defined( 'ABSPATH' ) || exit;

/**
 * Conditional helper utilities.
 *
 * @package ContentControl
 *
 * @deprecated 2.0.0
 */
class Is {

	/**
	 * Check if a content is accessible to current user.
	 *
	 * @param string                               $who logged_in or logged_out.
	 * @param string[]|array<string,string>|string $roles array of roles to check.
	 *
	 * @return bool
	 *
	 * @deprecated 2.0.0
	 */
	public static function accessible( $who = '', $roles = [] ) {
		return \ContentControl\user_meets_requirements( $who, $roles, 'match' );
	}

	/**
	 * Check if a content is blocked to current user.
	 *
	 * @param string                               $who logged_in or logged_out.
	 * @param string[]|array<string,string>|string $roles array of roles to check.
	 *
	 * @return boolean
	 *
	 * @deprecated 2.0.0
	 */
	public static function restricted( $who = '', $roles = [] ) {
		return ! \ContentControl\user_meets_requirements( $who, $roles, 'match' );
	}
}

```
