ZGoPmtList/zgopmtlist.php

37 lines
905 B
PHP
Raw Permalink Normal View History

2022-12-23 20:02:43 +00:00
<?php
/**
2022-12-26 22:12:23 +00:00
* 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
**/
2022-12-23 20:02:43 +00:00
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// Include the dependencies needed to instantiate the plugin.
2022-12-26 22:12:23 +00:00
foreach ( glob( plugin_dir_path( __FILE__ ) . 'assets/*.php' ) as $file ) {
2022-12-23 20:02:43 +00:00
include_once $file;
}
add_action( 'plugins_loaded', 'zgopmtlist_plugin' );
/**
2022-12-26 22:12:23 +00:00
* Starts the plugin.
**/
2022-12-23 20:02:43 +00:00
function zgopmtlist_plugin() {
$path = str_replace('zgopmtlist/','',plugin_dir_path( __FILE__ ));
$plugin = new Submenu( new Submenu_Page($path) );
$plugin->init();
}