Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Wordpress MVC - Main Class call from template
<!-- Example in a wordpress template -->
<div class="theme-access">
<?php echo $theme->my_method() ?>
</div>
<?php
// Example within wordpress php code
function test()
{
global $theme;
$result = $theme->my_method();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment