31 lines
563 B
PHP
31 lines
563 B
PHP
<?php
|
|
/**
|
|
* ZGo Payment Gateway for WooCommerce Plugin
|
|
*
|
|
* This class creates the main statistics page for the plugin.
|
|
*
|
|
**/
|
|
class Submenu {
|
|
|
|
private $submenu_page;
|
|
|
|
public function __construct( $submenu_page ) {
|
|
$this->submenu_page = $submenu_page;
|
|
}
|
|
|
|
public function init() {
|
|
add_action( 'admin_menu', array( $this, 'add_options_page' ) );
|
|
}
|
|
|
|
public function add_options_page() {
|
|
|
|
add_management_page(
|
|
'ZGo Payment Gateway Support',
|
|
'ZGo Payments',
|
|
'manage_options',
|
|
'zgopmtlist',
|
|
array( $this->submenu_page, 'render' )
|
|
);
|
|
}
|
|
|
|
}
|