PluginProbe
Simple CPT / 1.0.3
Simple CPT v1.0.3
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1.0 1.1.1
simple-cpt / simple-cpt.php

simple-cpt.php in Simple CPT 1.0.3, at simple-cpt.php

87 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Simple CPT
4 *
5 * @package Simple_Cpt
6 * @author George Pattihis
7 * @copyright 2021 George Pattihis
8 * @license GPL-2.0-or-later
9 * @link https://profiles.wordpress.org/pattihis/
10 * @since 1.0.0
11 *
12 * @wordpress-plugin
13 * Plugin Name: Simple CPT
14 * Plugin URI: https://wordpress.org/plugins/simple-cpt/
15 * Description: Simple CPT provides an easy to use interface for registering and managing Custom Post Types and Custom Taxonomies.
16 * Version: 1.0.3
17 * Requires at least: 5.0
18 * Tested up to: 6.0
19 * Requires PHP: 5.6
20 * Author: George Pattihis
21 * Author URI: https://profiles.wordpress.org/pattihis/
22 * License: GPL-2.0+
23 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
24 * Text Domain: simple-cpt
25 * Domain Path: /languages
26 *
27 */
28
29 // If this file is called directly, abort.
30 if ( ! defined( 'WPINC' ) ) {
31 die;
32 }
33
34 /**
35 * Currently plugin version.
36 */
37 define( 'SIMPLE_CPT_VERSION', '1.0.3' );
38
39 /**
40 * Plugin's basename
41 */
42 define( 'SIMPLE_CPT_BASENAME', plugin_basename(__FILE__) );
43
44 /**
45 * The code that runs during plugin activation.
46 * This action is documented in includes/class-simple-cpt-activator.php
47 */
48 function activate_simple_cpt() {
49 require_once plugin_dir_path( __FILE__ ) . 'includes/class-simple-cpt-activator.php';
50 Simple_Cpt_Activator::activate();
51 }
52
53 /**
54 * The code that runs during plugin deactivation.
55 * This action is documented in includes/class-simple-cpt-deactivator.php
56 */
57 function deactivate_simple_cpt() {
58 require_once plugin_dir_path( __FILE__ ) . 'includes/class-simple-cpt-deactivator.php';
59 Simple_Cpt_Deactivator::deactivate();
60 }
61
62 register_activation_hook( __FILE__, 'activate_simple_cpt' );
63 register_deactivation_hook( __FILE__, 'deactivate_simple_cpt' );
64
65 /**
66 * The core plugin class that is used to define internationalization,
67 * admin-specific hooks, and public-facing site hooks.
68 */
69 require plugin_dir_path( __FILE__ ) . 'includes/class-simple-cpt.php';
70
71 /**
72 * Begins execution of the plugin.
73 *
74 * Since everything within the plugin is registered via hooks,
75 * then kicking off the plugin from this point in the file does
76 * not affect the page life cycle.
77 *
78 * @since 1.0.0
79 */
80 function run_simple_cpt() {
81
82 $plugin = new Simple_Cpt();
83 $plugin->run();
84
85 }
86 run_simple_cpt();
87