PluginProbe ʕ •ᴥ•ʔ
Custom Post Type Permalinks / 3.0.0
Custom Post Type Permalinks v3.0.0
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 / Module.php
custom-post-type-permalinks / CPTP Last commit date
Module 9 years ago Module.php 9 years ago Util.php 9 years ago
Module.php
29 lines
1 <?php
2
3 abstract class CPTP_Module {
4
5 final public function init() {
6 $this->register();
7 }
8
9 public function register() {
10 add_action( 'CPTP_init', array( $this, 'add_hook' ) );
11 }
12
13 abstract function add_hook();
14
15 /**
16 * uninstall hooks
17 *
18 * @static
19 */
20 public static function uninstall_hook() {
21 }
22
23 /**
24 * fire on activate
25 */
26 public function activation_hook() {
27 }
28 }
29