PluginProbe
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More / 1.1.2
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More v1.1.2
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.10 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 47 releases
content-control / classes / Admin / Pages.php

Pages.php in Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More 1.1.2, at classes/Admin/Pages.php

39 lines 667 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // Exit if accessed directly
4 namespace JP\CC\Admin;
5
6 if ( ! defined( 'ABSPATH' ) ) {
7 exit;
8 }
9
10 /**
11 * Class Pages
12 * @package JP\CC\Admin
13 */
14 class Pages {
15
16 /**
17 *
18 */
19 public static function init() {
20 add_action( 'admin_menu', array( __CLASS__, 'register_pages' ), 999 );
21 }
22
23 /**
24 * Register admin options pages.
25 */
26 public static function register_pages() {
27 global $jp_cc_settings_page;
28
29 $jp_cc_settings_page = add_options_page( __( 'Content Control', 'content-control' ), __( 'Content Control', 'content-control' ), 'manage_options', 'jp-cc-settings', array(
30 '\\JP\CC\Admin\Settings',
31 'page',
32 ) );
33
34 return $jp_cc_settings_page;
35 }
36
37
38 }
39