PluginProbe
Blocks to Shortcode – Use blocks everywhere: in page templates, Elementor, etc. / 0.11
Blocks to Shortcode – Use blocks everywhere: in page templates, Elementor, etc. v0.11
trunk 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.10 0.11 0.12 0.13
blocks-to-shortcode / blocks-to-shortcode.php

blocks-to-shortcode.php in Blocks to Shortcode – Use blocks everywhere: in page templates, Elementor, etc. 0.11, at blocks-to-shortcode.php

32 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Plugin Name: Blocks to ShortCode
4 * Plugin URI: https://pluginenvision.com/plugins/blocks-to-shortcode
5 * Description: Use gutenberg blocks in anywhere using blocks to shortcode.
6 * Version: 0.11
7 * Requires at least: 6.2
8 * Requires PHP: 7.2
9 * Author: Plugin Envision
10 * Author URI: https://pluginenvision.com
11 * License: GPLv3 or later
12 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
13 * Text Domain: blocks-to-shortcode
14 */
15
16 if ( !defined( 'ABSPATH' ) ) { exit; }
17
18 if( function_exists( 'btsc_fs' ) ){
19 btsc_fs()->set_basename( true, __FILE__ );
20 }else{
21 define( 'BTSC_VERSION', isset( $_SERVER['HTTP_HOST'] ) && 'localhost' === $_SERVER['HTTP_HOST'] ? time() : '0.11' );
22 define( 'BTSC_DIR_URL', plugin_dir_url( __FILE__ ) );
23 define( 'BTSC_DIR_PATH', plugin_dir_path( __FILE__ ) );
24 define( 'BTSC_HAS_FS', file_exists( BTSC_DIR_PATH . 'vendor/freemius/start.php' ) );
25
26 if( BTSC_HAS_FS ){
27 require_once BTSC_DIR_PATH . 'includes/premium.php';
28 }
29
30 require_once BTSC_DIR_PATH . 'includes/Register.php';
31 }
32