Created
April 22, 2016 06:11
-
-
Save amostajo/16e1b237fe3b4592e73b5f2006be9251 to your computer and use it in GitHub Desktop.
Wordpress MVC - Add action with controller, priority and accepted tags
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 | |
public function on_admin() | |
{ | |
$this->add_action( 'save_post', 'PostController@save', 5, 2 ); | |
$this->add_action( 'admin_menu', 'AdminController@menu', [ 5, $this->config ], 10, 2 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment