PluginProbe
Twentig Supercharged Block Editor – Blocks, Patterns, Starter Sites, Portfolio / trunk
Twentig Supercharged Block Editor – Blocks, Patterns, Starter Sites, Portfolio vtrunk
2.0.5 2.0.4 2.0.3 2.0.2 trunk 0.0.1 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.9.1 0.9.2 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 All 88 releases
← All changes | twentig.php +20 -9 0.7trunk View file →
@@ -1,27 +1,27 @@
1 1 <?php
2 2 /**
3 3 * Plugin Name: Twentig
4 4 * Plugin URI: https://twentig.com
5 - * Description: Customize the Twenty Twenty theme even more. From Google Fonts to extra colors to blog options to custom copyright, you've got everything you need.
6 - * Author: Twentig
5 + * Description: Supercharge the WordPress block editor with enhanced core blocks, hundreds of block patterns, professional starter sites, and portfolio tools.
6 + * Author: Twentig.com
7 7 * Author URI: https://twentig.com
8 - * Version: 0.7
8 + * Version: 2.0.5
9 + * Requires at least: 6.9
10 + * Requires PHP: 7.4
11 + * Text Domain: twentig
9 12 * License: GPLv3 or later
10 13 *
11 14 * @package twentig
12 15 */
13 16
14 -// Exit if accessed directly.
15 -if ( ! defined( 'ABSPATH' ) ) {
16 - exit;
17 -}
17 +defined( 'ABSPATH' ) || exit;
18 18
19 19 /**
20 20 * Setup plugin constants.
21 21 */
22 -define( 'TWENTIG_VERSION', '0.7' );
23 -define( 'TWENTIG_PATH', trailingslashit( plugin_dir_path(__FILE__) ) );
22 +define( 'TWENTIG_VERSION', '2.0.5' );
23 +define( 'TWENTIG_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );
24 24 define( 'TWENTIG_URI', trailingslashit( plugin_dir_url( __FILE__ ) ) );
25 25 define( 'TWENTIG_ASSETS_URI', TWENTIG_URI . 'dist' );
26 26 define( 'TWENTIG_PLUGIN_BASE', plugin_basename( __FILE__ ) );
27 27
@@ -28,4 +28,15 @@
28 28 /**
29 29 * Load the Twentig plugin.
30 30 */
31 31 require_once TWENTIG_PATH . 'inc/init.php';
32 +
33 +/**
34 + * Adds a redirect transient during plugin activation.
35 + *
36 + * @param bool $network_wide Whether or not the plugin is being network activated.
37 + */
38 +function twentig_do_activate( $network_wide = false ) {
39 + // Add transient to trigger redirect to the Welcome screen.
40 + set_transient( '_twentig_activation_redirect', true, 30 );
41 +}
42 +register_activation_hook( __FILE__, 'twentig_do_activate' );