# getwid/2.1.1/getwid.php

Getwid – Gutenberg Blocks, version 2.1.1. 45 lines.

- Page: https://pluginprobe.com/plugins/getwid/2.1.1/code/getwid.php
- Raw: https://pluginprobe.com/plugins/getwid/2.1.1/raw/getwid.php
- Modified: 2025-05-08T10:12:12+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/getwid/2.1.1/code/getwid.php#L10-L20`.

```php
<?php
/**
 * Plugin Name: Getwid
 * Plugin URI: https://motopress.com/products/getwid/
 * Description: Extra Gutenberg blocks for building seamless and aesthetic websites in the WordPress block editor.
 * Version: 2.1.1
 * Author: MotoPress
 * Author URI: https://motopress.com/
 * License: GPLv2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: getwid
 * Domain Path: /languages
 */

//  Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( !class_exists( 'Getwid\Getwid' ) ) {

	if ( ! defined( 'GETWID_PLUGIN_FILE' ) ) {
		define( 'GETWID_PLUGIN_FILE', __FILE__ );
	}
	if ( ! defined( 'GETWID_PLUGIN_DIR' ) ) {
		define( 'GETWID_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); // The path with trailing slash
	}
	if ( ! defined( 'GETWID_PLUGIN_BASENAME' ) ) {
		define( 'GETWID_PLUGIN_BASENAME', plugin_basename( GETWID_PLUGIN_FILE ) );
	}
	if ( ! defined( 'GETWID_DEBUG' ) ) {
		define( 'GETWID_DEBUG', false );
	}

	include_once GETWID_PLUGIN_DIR . 'includes/getwid.php';

    function getwid() {
        return \Getwid\Getwid::getInstance();
    }

	// Init Getwid
    getwid();

}

```
