Created
June 1, 2011 03:09
-
-
Save jasonrhodes/1001723 to your computer and use it in GitHub Desktop.
Example of how to use the custom object class
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( '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