PluginProbe ʕ •ᴥ•ʔ
Smart Custom 404 Error Page / 11.4.6
Smart Custom 404 Error Page v11.4.6
trunk 11.4.6 11.4.7 11.4.8
404page / loader.php
404page Last commit date
assets 2 years ago inc 2 years ago 404page.php 2 years ago block.json 2 years ago block.php 2 years ago functions.php 2 years ago index.php 2 years ago loader.php 2 years ago readme.txt 2 years ago shortcodes.php 2 years ago uninstall.php 2 years ago
loader.php
72 lines
1 <?php
2
3 /**
4 * The 404page Plugin Loader
5 *
6 * @since 7
7 *
8 **/
9
10 // If this file is called directly, abort
11 if ( ! defined( 'WPINC' ) ) {
12 die;
13 }
14
15
16 /**
17 * Load Plugin Foundation
18 * @since 11.0.0
19 */
20 require_once( plugin_dir_path( __FILE__ ) . '/inc/ppf/loader.php' );
21
22
23 /**
24 * Load Plugin Main File
25 */
26 require_once( plugin_dir_path( __FILE__ ) . '/inc/class-404page.php' );
27
28
29 /**
30 * Load Plugin Functions
31 */
32 require_once( plugin_dir_path( __FILE__ ) . '/functions.php' );
33
34
35 /**
36 * Load Plugin Shortcodes
37 * @since 11.4.0
38 */
39 require_once( plugin_dir_path( __FILE__ ) . '/shortcodes.php' );
40
41
42 /**
43 * Load Plugin Block
44 * @since 11.4.0
45 */
46 require_once( plugin_dir_path( __FILE__ ) . '/block.php' );
47
48
49 /**
50 * Main Function
51 */
52 function pp_404page() {
53
54 return PP_404Page::getInstance( array(
55 'file' => dirname( __FILE__ ) . '/404page.php',
56 'slug' => pathinfo( dirname( __FILE__ ) . '/404page.php', PATHINFO_FILENAME ),
57 'name' => 'Smart Custom 404 error page [404page]',
58 'shortname' => '404page',
59 'version' => '11.4.6'
60 ) );
61
62 }
63
64
65
66 /**
67 * Run the plugin
68 */
69 pp_404page();
70
71
72 ?>