-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbetter-by-default.php
More file actions
83 lines (69 loc) · 2.97 KB
/
better-by-default.php
File metadata and controls
83 lines (69 loc) · 2.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
/**
* The plugin bootstrap file
*
* This file is read by WordPress to generate the plugin information in the plugin
* admin area. This file also includes all of the dependencies used by the plugin,
* registers the activation and deactivation functions, and defines a function
* that starts the plugin.
*
* @link https://www.multidots.com/
* @since 1.0
* @package better-by-default
*
* @wordpress-plugin
* Plugin Name: Better By Default
* Description: Enhance your WordPress site with the Better By Default Plugin, designed for simplicity, security and performance. Ideal for users seeking a clean and efficient experience, Better By Default focuses on delivering core functionalities while maintaining a minimalist approach.
* Version: 1.3
* Requires PHP: 7.2.5
* Author: Multidots
* Author URI: https://www.multidots.com/
* License: GPL-3.0+
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
* Text Domain: better-by-default
* Domain Path: /languages
*/
namespace BetterByDefault;
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'BETTER_BY_DEFAULT_VERSION', '1.3' );
define( 'BETTER_BY_DEFAULT_URL', plugin_dir_url( __FILE__ ) );
define( 'BETTER_BY_DEFAULT_DIR', plugin_dir_path( __FILE__ ) );
define( 'BETTER_BY_DEFAULT_BASEPATH', plugin_basename( __FILE__ ) );
define( 'BETTER_BY_DEFAULT_SRC_BLOCK_DIR_PATH', untrailingslashit( BETTER_BY_DEFAULT_DIR . 'assets/build/js/blocks' ) );
if ( ! defined( 'BETTER_BY_DEFAULT_PATH' ) ) {
define( 'BETTER_BY_DEFAULT_PATH', __DIR__ );
}
if ( ! defined( 'BETTER_BY_DEFAULT_EXTRA_OPTIONS' ) ) {
define( 'BETTER_BY_DEFAULT_EXTRA_OPTIONS', 'better_by_default_extra_option' );
}
if ( ! defined( 'BETTER_BY_DEFAULT_PROTECT_OPTIONS' ) ) {
define( 'BETTER_BY_DEFAULT_PROTECT_OPTIONS', 'better_by_default_protect_option' );
}
if ( ! defined( 'BETTER_BY_DEFAULT_MISCELLANEOUS_OPTIONS' ) ) {
define( 'BETTER_BY_DEFAULT_MISCELLANEOUS_OPTIONS', 'better_by_default_miscellaneous_option' );
}
if ( ! defined( 'BETTER_BY_DEFAULT_PERFORMANCE_OPTIONS' ) ) {
define( 'BETTER_BY_DEFAULT_PERFORMANCE_OPTIONS', 'better_by_default_performance_option' );
}
if ( ! defined( 'BETTER_BY_DEFAULT_SIMPLIFY_OPTIONS' ) ) {
define( 'BETTER_BY_DEFAULT_SIMPLIFY_OPTIONS', 'better_by_default_simplify_option' );
}
if ( ! defined( 'BETTER_BY_DEFAULT_PERSONALIZE_OPTIONS' ) ) {
define( 'BETTER_BY_DEFAULT_PERSONALIZE_OPTIONS', 'better_by_default_personalize_option' );
}
// Load the autoloader.
require_once plugin_dir_path( __FILE__ ) . '/includes/helpers/autoloader.php';
register_activation_hook( __FILE__, array( \BetterByDefault\Inc\Activator::class, 'activate' ) );
register_deactivation_hook( __FILE__, array( \BetterByDefault\Inc\Deactivator::class, 'deactivate' ) );
/**
* Begins execution of the plugin.
*
* @since 1.0
*/
function run_md_scaffold() {
new \BetterByDefault\Inc\Better_By_Default();
}
run_md_scaffold();