ZGoPmtList/zgopmtlist.php

36 lines
905 B
PHP

<?php
/**
* Plugin Name: ZGo Payment Database
* Plugin URI: http://vergara.tech
* Description: Display payments processed using ZGo Payment Gateway.
* Version: 0.8
* Requires at least: 5.2
* Requires PHP: 7.2
* Author: Vergara Tech LLC
* Author URI: https://vergara.tech
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
**/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// Include the dependencies needed to instantiate the plugin.
foreach ( glob( plugin_dir_path( __FILE__ ) . 'assets/*.php' ) as $file ) {
include_once $file;
}
add_action( 'plugins_loaded', 'zgopmtlist_plugin' );
/**
* Starts the plugin.
**/
function zgopmtlist_plugin() {
$path = str_replace('zgopmtlist/','',plugin_dir_path( __FILE__ ));
$plugin = new Submenu( new Submenu_Page($path) );
$plugin->init();
}