Created
April 22, 2016 06:08
-
-
Save amostajo/3d0f35a9e0e9ba85c898723ad4b52103 to your computer and use it in GitHub Desktop.
Wordpress MVC - Add action hook with controller
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 init() | |
{ | |
$this->add_action( 'save_post', 'PostController@save' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment