Skip to content

Instantly share code, notes, and snippets.

@tomjn
Last active July 3, 2018 11:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomjn/6089929 to your computer and use it in GitHub Desktop.
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
<?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