PluginProbe ʕ •ᴥ•ʔ
Custom Post Type Permalinks / 0.9.5
Custom Post Type Permalinks v0.9.5
1.2.0 1.3.0 1.3.1 1.4.0 1.5.1 1.5.2 1.5.4 2.0.0 2.0.1 2.0.2 2.1.1 2.1.2 2.1.3 2.2.0 3.0.0 3.0.1 3.1.0 3.1.1 3.1.3 3.1.4 3.1.5 3.2.0 3.2.1 3.2.2 3.3.0 3.3.1 3.3.4 3.3.5 3.4.0 3.4.0-rc.1 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.5.2 3.5.3 3.5.4 3.5.5 trunk 0.6 0.6.1 0.6.2 0.7 0.7.1 0.7.10 0.7.2 0.7.2.1 0.7.3 0.7.3.1 0.7.4 0.7.4.1 0.7.5 0.7.5.1 0.7.5.2 0.7.5.6 0.7.6 0.7.8 0.7.9 0.7.9.1 0.7.9.2 0.8 0.8.1 0.8.6 0.8.7 0.8.7.1 0.8.7.5 0.8.7.6 0.9 0.9.1 0.9.2.1 0.9.3.1 0.9.3.2 0.9.3.3 0.9.5 0.9.5.1 0.9.5.2 0.9.5.3 0.9.5.4 0.9.5.6 0.9.6 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0
custom-post-type-permalinks / CPTP.php
custom-post-type-permalinks Last commit date
CPTP 12 years ago language 12 years ago CPTP.php 12 years ago cptp.sublime-project 12 years ago cptp.sublime-workspace 12 years ago custom-post-type-permalinks.php 12 years ago license.txt 12 years ago readme.txt 12 years ago screenshot-1.png 14 years ago
CPTP.php
88 lines
1 <?php
2
3 /**
4 * CPTP
5 *
6 * Facade.
7 *
8 * @package Custom_Post_Type_Permalinks
9 * @since 0.9.4
10 *
11 * */
12
13
14 define( "CPTP_VERSION", "0.9.3" );
15 define( "CPTP_DEFAULT_PERMALINK", "/%postname%/" );
16 define( "CPTP_DIR", dirname( __FILE__ ) );
17
18
19 require_once CPTP_DIR.'/CPTP/Util.php';
20 require_once CPTP_DIR.'/CPTP/Module.php';
21 require_once CPTP_DIR.'/CPTP/Module/Setting.php';
22 require_once CPTP_DIR.'/CPTP/Module/Rewrite.php';
23 require_once CPTP_DIR.'/CPTP/Module/Admin.php';
24 require_once CPTP_DIR.'/CPTP/Module/Permalink.php';
25 require_once CPTP_DIR.'/CPTP/Module/GetArchives.php';
26 require_once CPTP_DIR.'/CPTP/Module/FlushRules.php';
27
28
29 class CPTP {
30
31 private static $instance;
32
33 private function __construct() {
34 $this->load_modules();
35 $this->init();
36 }
37
38 /**
39 *
40 * load_modules
41 *
42 * Load CPTP_Modules.
43 * @since 0.9.5
44 *
45 * */
46
47 private function load_modules() {
48 new CPTP_Module_Setting();
49 new CPTP_Module_Rewrite();
50 new CPTP_Module_Admin();
51 new CPTP_Module_Permalink();
52 new CPTP_Module_GetArchives();
53 new CPTP_Module_FlushRules();
54 do_action( "CPTP_load_modules" );
55
56 }
57
58 /**
59 *
60 * init
61 *
62 * Fire Module::add_hook
63 *
64 * @since 0.9.5
65 *
66 * */
67
68 private function init() {
69 do_action( "CPTP_init" );
70 }
71
72 /**
73 * Singleton
74 * @static
75 */
76 public static function get_instance() {
77
78 if (!isset(self::$_instance)) {
79 self::$instance = new CPTP;
80 }
81
82 return self::$instance;
83 }
84
85
86
87 }
88