PluginProbe ʕ •ᴥ•ʔ
Disable Admin Notices – Hide Dashboard Notifications / trunk
Disable Admin Notices – Hide Dashboard Notifications vtrunk
1.4.5 trunk 1.0.0 1.0.2 1.0.3 1.0.5 1.0.6 1.1.1 1.1.3 1.1.4 1.2.0 1.2.2 1.2.3 1.2.4 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4
disable-admin-notices / libs / factory / pages / boot.php
disable-admin-notices / libs / factory / pages Last commit date
includes 1 year ago langs 1 year ago boot.php 1 year ago index.php 3 years ago pages.php 1 year ago
boot.php
46 lines
1 <?php
2 /**
3 * Factory Pages
4 *
5 * @author Alex Kovalev <alex.kovalevv@gmail.com>
6 * @since 1.0.1
7 * @package core
8 * @copyright (c) 2018, Webcraftic Ltd
9 *
10 */
11
12 // Exit if accessed directly
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit;
15 }
16
17 // module provides function only for the admin area
18 if ( ! is_admin() ) {
19 return;
20 }
21
22 if ( defined( 'FACTORY_PAGES_480_LOADED' ) ) {
23 return;
24 }
25
26 define( 'FACTORY_PAGES_480_LOADED', true );
27
28 define( 'FACTORY_PAGES_480_VERSION', '4.8.0' );
29
30 define( 'FACTORY_PAGES_480_DIR', dirname( __FILE__ ) );
31 define( 'FACTORY_PAGES_480_URL', plugins_url( '', __FILE__ ) );
32
33 if ( ! defined( 'FACTORY_FLAT_ADMIN' ) ) {
34 define( 'FACTORY_FLAT_ADMIN', true );
35 }
36
37 add_action( 'init', function () {
38 load_plugin_textdomain( 'wbcr_factory_pages_480', false, dirname( plugin_basename( __FILE__ ) ) . '/langs' );
39 } );
40
41 require( FACTORY_PAGES_480_DIR . '/pages.php' );
42 require( FACTORY_PAGES_480_DIR . '/includes/page.class.php' );
43 require( FACTORY_PAGES_480_DIR . '/includes/admin-page.class.php' );
44
45
46