Skip to content

Instantly share code, notes, and snippets.

@jasonrhodes
Created June 1, 2011 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jasonrhodes/1001723 to your computer and use it in GitHub Desktop.
Save jasonrhodes/1001723 to your computer and use it in GitHub Desktop.
Example of how to use the custom object class
<?php
require_once( 'customobject.php' );
$options = array(
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail' ),
'menu_position' => 5,
'has_archive' => true,
'rewrite' => array( 'slug' => 'rising-profiles' )
);
$labels = array();
$profiles = new CustomObject( "profile", $options, $labels );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment