# blockspare/5.0.1/blockspare.php

BlockSpare – Gutenberg Blocks, AI Content Generator &amp; Site Builder for News, Magazine &amp; Blogs, version 5.0.1. 66 lines.

- Page: https://pluginprobe.com/plugins/blockspare/5.0.1/code/blockspare.php
- Raw: https://pluginprobe.com/plugins/blockspare/5.0.1/raw/blockspare.php
- Modified: 2026-09-24T12:18:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/blockspare/5.0.1/code/blockspare.php#L10-L20`.

```php
<?php

/** 
 * Plugin Name:       BlockSpare
 * Plugin URI:        https://blockspare.com/
 * Description:       Build news, magazine, blog, editorial and business websites with powerful Gutenberg blocks, AI tools, Site Builder, starter sites, post layouts and more.
 * Version:           5.0.1
 * Author:            BlockSpare
 * Author URI:        https://blockspare.com/
 * Text Domain:       blockspare
 * License:           GPL-2.0+
 * License URI:       http://www.gnu.org/licenses/gpl-2.0.html
 */

defined('ABSPATH') or die('No script kiddies please!');  // prevent direct access

/**
 * Define global constants
 **/
defined('BLOCKSPARE_BASE_FILE') or define('BLOCKSPARE_BASE_FILE', __FILE__);
defined('BLOCKSPARE_PLUGIN_BASE') or define('BLOCKSPARE_PLUGIN_BASE', plugin_basename(BLOCKSPARE_BASE_FILE));
defined('BLOCKSPARE_BASE_DIR') or define('BLOCKSPARE_BASE_DIR', dirname(BLOCKSPARE_BASE_FILE));
defined('BLOCKSPARE_PLUGIN_URL') or define('BLOCKSPARE_PLUGIN_URL', plugin_dir_url(__FILE__));
defined('BLOCKSPARE_PLUGIN_DIR') or define('BLOCKSPARE_PLUGIN_DIR', plugin_dir_path(__FILE__));
defined('BLOCKSPARE_PRO_PATH') || define('BLOCKSPARE_PRO_PATH', 'https://www.blockspare.com/');
defined('BLOCKSPARE_SHOW_PRO_NOTICES') || define('BLOCKSPARE_SHOW_PRO_NOTICES', true);
defined('BLOCKSPARE_VERSION') || define('BLOCKSPARE_VERSION',  '5.0.0');


if (!version_compare(PHP_VERSION, '5.6', '>=')) {
  add_action('admin_notices', 'blockspare_fail_php_free_version');
} elseif (!version_compare(get_bloginfo('version'), '4.7', '>=')) {
  add_action('admin_notices', 'blockspare_fail_wp_free_version');
} else {
  /**
   * Freemius.
   */
  require_once(BLOCKSPARE_PLUGIN_DIR . '/freemius.php');

  /**
   * Plugin init and welcome.
   */

  include_once BLOCKSPARE_PLUGIN_DIR . 'inc/init.php';
  include_once BLOCKSPARE_PLUGIN_DIR . 'inc/welcome.php';
  include_once BLOCKSPARE_PLUGIN_DIR . 'inc/fonts.php';
  include_once BLOCKSPARE_PLUGIN_DIR . 'inc/theme-builder/theme-builder-loader.php';
  include_once BLOCKSPARE_PLUGIN_DIR . 'inc/ai/class-ai.php';
}

function blockspare_fail_php_free_version()
{
  /* translators: %s: PHP version */
  $message      = sprintf(esc_html__('BlockSpare for Gutenberg requires PHP version %s+, plugin is currently NOT RUNNING.', 'blockspare'), '5.6');
  $html_message = sprintf('<div class="error">%s</div>', wpautop($message));
  echo wp_kses_post($html_message);
}

function blockspare_fail_wp_free_version()
{
  /* translators: %s: WordPress version */
  $message      = sprintf(esc_html__('BlockSpare for Gutenberg requires WordPress version %s+. Because you are using an earlier version, the plugin is currently NOT RUNNING.', 'blockspare'), '4.7');
  $html_message = sprintf('<div class="error">%s</div>', wpautop($message));
  echo wp_kses_post($html_message);
}

```
