PluginProbe
Ultimate Blocks – 25+ Gutenberg Blocks for Block Editor / 3.6.0
Ultimate Blocks – 25+ Gutenberg Blocks for Block Editor v3.6.0
3.6.0 3.5.9 3.5.8 3.5.7 3.5.6 2.4.16 2.4.17 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 3.0.0 All 131 releases
ultimate-blocks / ultimate-blocks.php

ultimate-blocks.php in Ultimate Blocks – 25+ Gutenberg Blocks for Block Editor 3.6.0, at ultimate-blocks.php

107 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Ultimate Blocks
4 * Plugin URI: https://ultimateblocks.com/
5 * Description: Custom Blocks for Bloggers and Marketers. Create Better Content With Gutenberg.
6 * Author: Ultimate Blocks
7 * Author URI: https://ultimateblocks.com/
8 * Version: 3.6.0
9 * License: GPL3+
10 * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
11 * Text Domain: ultimate-blocks
12 * Domain Path: /languages
13 *
14 * @package UB
15 */
16
17 // Exit if accessed directly.
18 use Ultimate_Blocks\includes\pro_manager\Pro_Manager;
19
20 if ( ! defined( 'ABSPATH' ) ) {
21 exit;
22 }
23
24 require_once 'includes/class-ultimate-blocks-constants.php';
25
26 /**
27 * Currently plugin version.
28 * Start at version 1.0.0 and use SemVer - https://semver.org
29 */
30 define( 'ULTIMATE_BLOCKS_VERSION', Ultimate_Blocks_Constants::plugin_version() );
31 /**
32 * Plugin Name
33 */
34 define( 'ULTIMATE_BLOCKS_NAME', Ultimate_Blocks_Constants::plugin_name() );
35 /**
36 * Plugin Path
37 */
38 define( 'ULTIMATE_BLOCKS_PATH', Ultimate_Blocks_Constants::plugin_path() );
39 /**
40 * Plugin URL
41 */
42 define( 'ULTIMATE_BLOCKS_URL', Ultimate_Blocks_Constants::plugin_url() );
43 /**
44 * Plugin TextDomain
45 */
46 define( 'ULTIMATE_BLOCKS_TEXT_DOMAIN', Ultimate_Blocks_Constants::text_domain() );
47
48 /**
49 * Plugin __FILE__
50 */
51 define( 'ULTIMATE_BLOCKS_PLUGIN_FILE', __FILE__ );
52
53 require_once trailingslashit( ULTIMATE_BLOCKS_PATH ) . 'vendor/autoload.php';
54
55 /**
56 * Block Initializer.
57 */
58 require_once plugin_dir_path( __FILE__ ) . 'src/init.php';
59
60
61 /**
62 * The code that runs during plugin activation.
63 * This action is documented in includes/class-ultimate-blocks-activator.php
64 */
65 function activate_ultimate_blocks() {
66 require_once plugin_dir_path( __FILE__ ) . 'includes/class-ultimate-blocks-activator.php';
67 Ultimate_Blocks_Activator::activate();
68 }
69
70 /**
71 * The code that runs during plugin deactivation.
72 * This action is documented in includes/class-ultimate-blocks-deactivator.php
73 */
74 function deactivate_ultimate_blocks() {
75 require_once plugin_dir_path( __FILE__ ) . 'includes/class-ultimate-blocks-deactivator.php';
76 Ultimate_Blocks_Deactivator::deactivate();
77 }
78
79 register_activation_hook( __FILE__, 'activate_ultimate_blocks' );
80 register_deactivation_hook( __FILE__, 'deactivate_ultimate_blocks' );
81
82 /**
83 * The core plugin class that is used to define internationalization,
84 * admin-specific hooks, and public-facing site hooks.
85 */
86 require plugin_dir_path( __FILE__ ) . 'includes/class-ultimate-blocks.php';
87
88 /**
89 * Begins execution of the plugin.
90 *
91 * Since everything within the plugin is registered via hooks,
92 * then kicking off the plugin from this point in the file does
93 * not affect the page life cycle.
94 *
95 * @since 1.0.2
96 */
97 function run_ultimate_blocks() {
98
99 $plugin = new Ultimate_Blocks();
100 $plugin->run();
101 }
102
103 // initialize license provider.
104 Pro_Manager::init_freemius();
105
106 add_action( 'plugins_loaded', 'run_ultimate_blocks', 10, 1 );
107