Last active
July 3, 2018 11:50
-
-
Save tomjn/6089929 to your computer and use it in GitHub Desktop.
An example of how to use the class defined here: https://gist.github.com/Tarendai/6089867
This file contains hidden or 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
<?php | |
require_once( 'custom_page.php' ); | |
class Hello_World_Page extends Tomjn_Custom_Page { | |
public function render_page() { | |
echo 'hello world!'; | |
} | |
} | |
$helloworld = new Hello_World_Page( array( | |
'url' => 'helloworld', | |
'pagename' => 'helloworld' | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment