PluginProbe
Custom 404 Pro / trunk
Custom 404 Pro vtrunk
3.15.2 3.15.4 3.15.5 3.15.6 3.16.0 3.15.1 3.15.0 3.14.1 3.14.0 3.13.0 trunk 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1.5 1.1.6 1.2.0 1.3.10 1.3.12 1.3.5 All 100 releases
custom-404-pro / custom-404-pro.php

custom-404-pro.php in Custom 404 Pro trunk, at custom-404-pro.php

65 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Custom 404 Pro
4 * Plugin URI: https://wordpress.org/plugins/custom-404-pro/
5 * Description: Override the default 404 page with any page or a custom URL from the Admin Panel.
6 * Version: 3.16.0
7 * Requires at least: 5.0
8 * Requires PHP: 7.4
9 * Author: Kunal Nagar
10 * Author URI: https://www.kunalnagar.in
11 * License: GPL-2.0+
12 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
13 * Text Domain: custom-404-pro
14 * Domain Path: /languages
15 *
16 * @package Custom_404_Pro
17 */
18
19 if ( ! defined( 'WPINC' ) ) {
20 die;
21 }
22
23 define( 'CUSTOM_404_PRO_VERSION', '3.16.0' );
24
25 /**
26 * Runs on plugin activation.
27 */
28 function activate_custom_404_pro() {
29 include_once plugin_dir_path( __FILE__ ) . 'includes/class-activateclass.php';
30 ActivateClass::activate();
31 }
32
33 /**
34 * Runs on plugin deactivation.
35 */
36 function deactivate_custom_404_pro() {
37 include_once plugin_dir_path( __FILE__ ) . 'includes/class-deactivateclass.php';
38 DeactivateClass::deactivate();
39 }
40
41 /**
42 * Runs on plugin uninstall.
43 */
44 function uninstall_custom_404_pro() {
45 include_once plugin_dir_path( __FILE__ ) . 'includes/class-uninstallclass.php';
46 UninstallClass::uninstall();
47 }
48
49 register_activation_hook( __FILE__, 'activate_custom_404_pro' );
50 register_deactivation_hook( __FILE__, 'deactivate_custom_404_pro' );
51 register_uninstall_hook( __FILE__, 'uninstall_custom_404_pro' );
52
53 require plugin_dir_path( __FILE__ ) . 'includes/class-pluginclass.php';
54 require plugin_dir_path( __FILE__ ) . 'admin/class-helpers.php';
55
56 /**
57 * Initialises and runs the plugin.
58 */
59 function run_custom_404_pro() {
60 Helpers::singleton();
61 new PluginClass();
62 }
63
64 run_custom_404_pro();
65