Files
genesis-simple-sidebars/genesis-simple-sidebars.php
Nick Cernis cedc1a8eaa [NOJIRA] Prepare for release of 2.2.3 (#60)
* chore: bump version to 2.2.3

* chore: add changelog for 2.2.3

* chore: bump tested up to

* chore: add grunt-cli

Allows us to run grunt tasks for release prep without having
to install grunt globally.

For example:

```sh
npx grunt checktextdomain
npx grunt makepot
```

* chore: upgrade grunt-wp-i18n

`npx grunt makepot` fails otherwise.

* chore: regenerate pot file

By running `npx grunt makepot`.

No changes to strings, just updates to the version and dates.
2024-03-06 15:07:10 +01:00

44 lines
935 B
PHP

<?php
/**
* Genesis Simple Sidebars constants.
*
* @package genesis-simple-sidebars
*/
/**
* Load the plugin file.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
define( 'GENESIS_SIMPLE_SIDEBARS_SETTINGS_FIELD', 'genesis_simple_sidebars_settings' );
define( 'GENESIS_SIMPLE_SIDEBARS_VERSION', '2.2.3' );
define( 'GENESIS_SIMPLE_SIDEBARS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'GENESIS_SIMPLE_SIDEBARS_PLUGIN_URL', plugins_url( '', __FILE__ ) );
require_once plugin_dir_path( __FILE__ ) . 'includes/class-genesis-simple-sidebars.php';
/**
* Helper function to retrieve the static object without using globals.
*
* @since 2.1.0
*/
function genesis_simple_sidebars() {
static $object;
if ( null === $object ) {
$object = new Genesis_Simple_Sidebars();
}
return $object;
}
/**
* Initialize the object on `plugins_loaded`.
*/
add_action( 'plugins_loaded', array( Genesis_Simple_Sidebars(), 'init' ) );