Last active
April 22, 2016 06:07
-
-
Save amostajo/358b50206f816bff2218ee419348845c to your computer and use it in GitHub Desktop.
Wordpress MVC - Main class external access plugin
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
<!-- Example in a wordpress template --> | |
<div class="theme-access"> | |
<?php echo $myspecialplugin->my_method() ?> | |
</div> | |
<?php | |
// Example within wordpress php code | |
function test() | |
{ | |
global $myspecialplugin; | |
$result = $myspecialplugin->my_method(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment