PluginProbe
Simple CPT / 1.1.1
Simple CPT v1.1.1
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.1.1, at simple-cpt.php

86 lines 2.4 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 Pattichis
7 * @copyright 2021 George Pattichis
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.1.1
17 * Requires at least: 5.3.0
18 * Tested up to: 7.1
19 * Requires PHP: 7.0
20 * Author: George Pattichis
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.1.1' );
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 and admin-specific hooks.
67 */
68 require plugin_dir_path( __FILE__ ) . 'includes/class-simple-cpt.php';
69
70 /**
71 * Begins execution of the plugin.
72 *
73 * Since everything within the plugin is registered via hooks,
74 * then kicking off the plugin from this point in the file does
75 * not affect the page life cycle.
76 *
77 * @since 1.0.0
78 */
79 function run_simple_cpt() {
80
81 $plugin = new Simple_Cpt();
82 $plugin->run();
83
84 }
85 run_simple_cpt();
86