Skip to content

Instantly share code, notes, and snippets.

@amostajo
Last active April 22, 2016 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amostajo/358b50206f816bff2218ee419348845c to your computer and use it in GitHub Desktop.
Save amostajo/358b50206f816bff2218ee419348845c to your computer and use it in GitHub Desktop.
Wordpress MVC - Main class external access plugin
<!-- 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