# content-control/1.1.2/classes/Admin/Pages.php

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

- Page: https://pluginprobe.com/plugins/content-control/1.1.2/code/classes/Admin/Pages.php
- Raw: https://pluginprobe.com/plugins/content-control/1.1.2/raw/classes/Admin/Pages.php
- Modified: 2016-09-30T20:07:12+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/1.1.2/code/classes/Admin/Pages.php#L10-L20`.

```php
<?php

// Exit if accessed directly
namespace JP\CC\Admin;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Class Pages
 * @package JP\CC\Admin
 */
class Pages {

	/**
	 *
	 */
	public static function init() {
		add_action( 'admin_menu', array( __CLASS__, 'register_pages' ), 999 );
	}

	/**
	 * Register admin options pages.
	 */
	public static function register_pages() {
		global $jp_cc_settings_page;

		$jp_cc_settings_page = add_options_page( __( 'Content Control', 'content-control' ), __( 'Content Control', 'content-control' ), 'manage_options', 'jp-cc-settings', array(
			'\\JP\CC\Admin\Settings',
			'page',
		) );

		return $jp_cc_settings_page;
	}


}

```
