inc/post-meta.php
/**
     * Registers a new post type in the WP db.
     */
Registers a new post type in the WP db.
Registers a new post type in the WP db .
function register_post_type()
    {
        $n = ucwords($this->post_type_name);
        $args = array(
            "label" => $n . 's',
            'singular_name' => $n,
            "public" => true,
            "publicly_queryable" => true,
            "query_var" => true,
            "rewrite" => true,
            "capability_type" => "post",
            "hierarchical" => false,
            "menu_position" => null,
            "supports" => array("title", "editor", "thumbnail"),
            'has_archive' => true
        );
        $args = array_merge($args, $this->post_type_args);
        register_post_type($this->post_type_name, $args);
    }
function register_post_type ( ) { $ n = ucwords ( $ this -> post_type_name ) ; $ args = array ( " label " => $ n . 's' , 'singular_name' => $ n , " public " => true , " publicly_queryable " => true , " query_var " => true , " rewrite " => true , " capability_type " => " post " , " hierarchical " => false , " menu_position " => null , " supports " => array ( " title " , " editor " , " thumbnail " ) , 'has_archive' => true ) ; $ args = array_merge ( $ args , $ this -> post_type_args ) ; register_post_type ( $ this -> post_type_name , $ args ) ; }
Registers a new post type in the WP db.
Registers a new post type in the WP db .
#"menu_icon" => get_stylesheet_directory_uri() . "/article16.png", // Take user provided options, and override the defaults.