Created
April 22, 2016 05:58
-
-
Save amostajo/404bfb8ce9cfa7bd5250284a7e63c6ac to your computer and use it in GitHub Desktop.
Wordpress MVC - Main Class Admin hooks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// @link http://wordpress-dev.evopiru.com/documentation/main-class/ | |
class Main extends Theme | |
{ | |
public function on_admin() | |
{ | |
// Admin action located in a controller. Controller: AdminController Method: menu() | |
$this->add_action( 'admin_menu', 'AdminController@menu' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment