MOON
Server: Apache
System: Linux server1.primemusicproductions.com 4.18.0-477.27.2.el8_8.x86_64 #1 SMP Fri Sep 29 08:21:01 EDT 2023 x86_64
User: primrwxj (1001)
PHP: 8.3.3
Disabled: NONE
Upload Files
File: //home/primrwxj/weddingmonitor/wp-content/plugins/genesis-simple-hooks/genesis-simple-hooks.php
<?php
/**
 * This file handles the creation of the Simple Hooks admin menu.
 *
 * @package genesis-simple-hooks
 */

define( 'GENESIS_SIMPLE_HOOKS_DIR', plugin_dir_path( __FILE__ ) );
define( 'GENESIS_SIMPLE_HOOKS_URL', plugins_url( '', __FILE__ ) );
define( 'GENESIS_SIMPLE_HOOKS_VERSION', '2.3.2' );

require_once GENESIS_SIMPLE_HOOKS_DIR . '/includes/class-genesis-simple-hooks.php';

/**
 * Helper function to retrieve the static object without using globals.
 *
 * @since 0.9.0
 */
function genesis_simple_hooks() {

	static $object;

	if ( null === $object ) {
		$object = new Genesis_Simple_Hooks();
	}

	return $object;
}
/**
 * Initialize the object on `plugins_loaded`.
 */
add_action( 'plugins_loaded', array( Genesis_Simple_Hooks(), 'init' ) );

/**
 * Set up plugin updates from WP Engine.
 *
 * Only if the includes/class-genesis-simple-hooks-plugin-updater.php file exists. This file
 * is not present in the version released to the WordPress.org repository.
 */
function genesis_simple_hooks_check_for_upgrades() {
	if ( ! file_exists( __DIR__ . '/includes/class-genesis-simple-hooks-plugin-updater.php' ) ) {
		return;
	}

	$properties = array(
		'plugin_slug'     => 'genesis-simple-hooks',
		'plugin_basename' => plugin_basename( dirname( __FILE__ ) . '/plugin.php' ),
	);

	require_once __DIR__ . '/includes/class-genesis-simple-hooks-plugin-updater.php';
	new Genesis_Simple_Hooks_Plugin_Updater( $properties );
}
add_action( 'admin_init', 'genesis_simple_hooks_check_for_upgrades' );