Skip to content

Instantly share code, notes, and snippets.

@tomjn tomjn/helloworld.php
Last active Jul 3, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.