Commit ee30a2ae authored by Michael Iseard's avatar Michael Iseard
Browse files

Rename method

parent db068cda
......@@ -103,7 +103,7 @@ class Admin {
$this->mapper = $mapper;
$this->twig = $twig;
$this->payment = $payment;
$this->activator = $activator;
$this->activator = $activator;
$this->settings = $settings;
}
......@@ -111,7 +111,7 @@ class Admin {
/**
* Create the Kudos Donations admin pages.
*/
public function kudos_add_menu_pages() {
public function add_menu_pages() {
add_menu_page(
__( 'Kudos', 'kudos-donations' ),
......
......@@ -86,7 +86,7 @@ class KudosDonations {
$plugin_admin = $this->container->get( 'Admin' );
add_action( 'admin_menu', [ $plugin_admin, 'kudos_add_menu_pages' ], 11 );
add_action( 'admin_menu', [ $plugin_admin, 'add_menu_pages' ], 11 );
add_action( 'admin_init', [ $plugin_admin, 'admin_actions' ] );
add_action( 'admin_init', [ $plugin_admin, 'register_settings' ] );
add_action( 'rest_api_init', [ $plugin_admin, 'register_settings' ] );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment