Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // I put this inside the theme file 'functions.php'
- $MyClass = new MyClass;
- class MyClass
- {
- function MyFunction()
- {
- echo 'Hello World!';
- }
- }
- ?>
- <?php
- // and I put this inside footer.php
- $MyClass->MyFunction();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement