Skip to content

Instantly share code, notes, and snippets.

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() ?>
// 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
You can’t perform that action at this time.