PluginProbe
Gutenify – Visual Site Builder Blocks & Starter Templates / 1.1.1
Gutenify – Visual Site Builder Blocks & Starter Templates v1.1.1
1.9.0 1.8.0 1.7.0 1.6.6 1.6.5 1.6.4 trunk 0.0.1 0.0.2 0.0.3 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 All 74 releases
gutenify / gutenify.php

gutenify.php in Gutenify – Visual Site Builder Blocks & Starter Templates 1.1.1, at gutenify.php

53 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Gutenify - Gutenberg Fullsite Editing Template Kits - Advanced Blocks
4 * Description: Gutenify is a World’s First True Gutenberg (Block) Template Kit pluigin that is compatible with WordPress Full Site Editing to help you create the website you always wanted. Gutenify is a free WordPress plugin which allows you to add different block effortlessly in your site.
5 * Author: Gutenify
6 * Author URI: https://www.gutenify.com
7 * Version: 1.1.1
8 * Text Domain: gutenify
9 * Domain Path: /languages
10 * Tested up to: 5.6
11 *
12 * Gutenify is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 2 of the License, or
15 * any later version.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with Gutenify. If not, see <http://www.gnu.org/licenses/>.
19 *
20 * @package Gutenify
21 */
22
23 // Exit if accessed directly.
24 if ( ! defined( 'ABSPATH' ) ) {
25 exit;
26 }
27
28 // Define constants.
29 define( 'GUTENIFY_VERSION', '1.1.1' );
30 define( 'GUTENIFY_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
31 define( 'GUTENIFY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
32 define( 'GUTENIFY_PLUGIN_FILE', __FILE__ );
33 define( 'GUTENIFY_PLUGIN_BASE', plugin_basename( __FILE__ ) );
34
35 function gutenify() {
36 require 'inc/bootstrap.php';
37 }
38
39 gutenify();
40
41 function gutenify_activation_redirect( $plugin ) {
42 $screen = get_current_screen();
43 if ( ! empty( $screen->id ) && 'appearance_page_tgmpa-install-plugins' === $screen->id ) {
44 return false;
45 }
46
47 if ( $plugin == plugin_basename( __FILE__ ) ) {
48 wp_safe_redirect( admin_url( 'admin.php?page=gutenify' ) );
49 exit;
50 }
51 }
52 add_action( 'activated_plugin', 'gutenify_activation_redirect' );
53