PluginProbe ʕ •ᴥ•ʔ
WP Create Multiple Posts & Pages / 2.0.4
WP Create Multiple Posts & Pages v2.0.4
trunk 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4
wp-create-multiple-posts-pages / wp-create-multiple-posts-pages.php
wp-create-multiple-posts-pages Last commit date
admin 1 month ago includes 1 month ago languages 1 month ago public 1 month ago README.md 1 month ago index.php 1 month ago license.txt 1 month ago readme.txt 1 month ago uninstall.php 1 month ago wp-create-multiple-posts-pages.php 1 month ago
wp-create-multiple-posts-pages.php
98 lines
1 <?php
2 /**
3 * The plugin bootstrap file
4 *
5 * This file is read by WordPress to generate the plugin information in the plugin
6 * admin area. This file also includes all of the dependencies used by the plugin,
7 * registers the activation and deactivation functions, and defines a function
8 * that starts the plugin.
9 *
10 * @package Wp_Create_Multi_Posts_Pages
11 * @author Sajjad Hossain Sagor <sagorh672@gmail.com>
12 *
13 * Plugin Name: WP Create Multiple Posts & Pages
14 * Plugin URI: https://wordpress.org/plugins/wp-create-multiple-posts-pages/
15 * Description: Create Multiple WordPress Posts & Pages At Once With a Single Click.
16 * Version: 2.0.4
17 * Requires at least: 5.6
18 * Requires PHP: 8.0
19 * Author: Sajjad Hossain Sagor
20 * Author URI: https://sajjadhsagor.com/
21 * License: GPL-2.0+
22 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
23 * Text Domain: wp-create-multiple-posts-pages
24 * Domain Path: /languages
25 */
26
27 // If this file is called directly, abort.
28 if ( ! defined( 'ABSPATH' ) ) {
29 die;
30 }
31
32 /**
33 * Currently plugin version.
34 */
35 define( 'WP_CREATE_MULTI_POSTS_PAGES_VERSION', '2.0.4' );
36
37 /**
38 * Define Plugin Folders Path
39 */
40 define( 'WP_CREATE_MULTI_POSTS_PAGES_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
41
42 define( 'WP_CREATE_MULTI_POSTS_PAGES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
43
44 define( 'WP_CREATE_MULTI_POSTS_PAGES_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
45
46 /**
47 * The code that runs during plugin activation.
48 * This action is documented in includes/class-wp-create-multi-posts-pages-activator.php
49 *
50 * @since 2.0.0
51 */
52 function on_activate_wp_create_multi_posts_pages() {
53 require_once WP_CREATE_MULTI_POSTS_PAGES_PLUGIN_PATH . 'includes/class-wp-create-multi-posts-pages-activator.php';
54
55 Wp_Create_Multi_Posts_Pages_Activator::on_activate();
56 }
57
58 register_activation_hook( __FILE__, 'on_activate_wp_create_multi_posts_pages' );
59
60 /**
61 * The code that runs during plugin deactivation.
62 * This action is documented in includes/class-wp-create-multi-posts-pages-deactivator.php
63 *
64 * @since 2.0.0
65 */
66 function on_deactivate_wp_create_multi_posts_pages() {
67 require_once WP_CREATE_MULTI_POSTS_PAGES_PLUGIN_PATH . 'includes/class-wp-create-multi-posts-pages-deactivator.php';
68
69 Wp_Create_Multi_Posts_Pages_Deactivator::on_deactivate();
70 }
71
72 register_deactivation_hook( __FILE__, 'on_deactivate_wp_create_multi_posts_pages' );
73
74 /**
75 * The core plugin class that is used to define internationalization,
76 * admin-specific hooks, and public-facing site hooks.
77 *
78 * @since 2.0.0
79 */
80 require WP_CREATE_MULTI_POSTS_PAGES_PLUGIN_PATH . 'includes/class-wp-create-multi-posts-pages.php';
81
82 /**
83 * Begins execution of the plugin.
84 *
85 * Since everything within the plugin is registered via hooks,
86 * then kicking off the plugin from this point in the file does
87 * not affect the page life cycle.
88 *
89 * @since 2.0.0
90 */
91 function run_wp_create_multi_posts_pages() {
92 $plugin = new Wp_Create_Multi_Posts_Pages();
93
94 $plugin->run();
95 }
96
97 run_wp_create_multi_posts_pages();
98