-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpattern-builder.php
More file actions
31 lines (25 loc) · 1.08 KB
/
pattern-builder.php
File metadata and controls
31 lines (25 loc) · 1.08 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
<?php
/**
* Plugin Name: Pattern Builder
* Plugin URI: https://www.twentybellows.com/pattern-builder/
* Description: Manage Patterns in the WordPress Editor.
* Requires at least: 6.6
* Requires PHP: 7.4
* Version: 1.0.4
* Author: Twenty Bellows
* Author URI: https://twentybellows.com
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: pattern-builder
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
require_once __DIR__ . '/includes/class-pattern-builder.php';
require_once __DIR__ . '/includes/class-pattern-builder-post-type.php'; // Loaded via class-pattern-builder.php chain; explicit here for IDE clarity.
use TwentyBellows\PatternBuilder\Pattern_Builder;
use TwentyBellows\PatternBuilder\Pattern_Builder_Post_Type;
// Assign role capabilities on activation (not on every init).
register_activation_hook( __FILE__, array( Pattern_Builder_Post_Type::class, 'assign_capabilities' ) );
// Initialize the plugin.
Pattern_Builder::get_instance();