Function Reference: gd_list_post_type

Summary

This function has not been documented yet.

Source File

gd_list_post_type() is located in geodir_list_manager/geodir_list_manager.php [Line: 35]

Source Code

function gd_list_post_type() {
    if ( ! post_type_exists('gd_list') ) {
        $labels = array (
            'name'          => __('Lists', GEODIRLISTS_TEXTDOMAIN),
            'singular_name' => __('List', GEODIRLISTS_TEXTDOMAIN),
            'add_new'       => __('Add New', GEODIRLISTS_TEXTDOMAIN),
            'add_new_item'  => __('Add New List', GEODIRLISTS_TEXTDOMAIN),
            'edit_item'     => __('Edit List', GEODIRLISTS_TEXTDOMAIN),
            'new_item'      => __('New List', GEODIRLISTS_TEXTDOMAIN),
            'view_item'     => __('View List', GEODIRLISTS_TEXTDOMAIN),
            'search_items'  => __('Search Lists', GEODIRLISTS_TEXTDOMAIN),
            'not_found'     => __('No List Found', GEODIRLISTS_TEXTDOMAIN),
            'not_found_in_trash' => __('No List Found In Trash', GEODIRLISTS_TEXTDOMAIN) );

        $args = array (
            'labels' => $labels,
            'can_export' => true,
            'capability_type' => 'post',
            'description' => __('List post type.', GEODIRLISTS_TEXTDOMAIN),
            'has_archive' => 'lists',
            'hierarchical' => false,
            'map_meta_cap' => true,
            'public' => true,
            'query_var' => true,
            'rewrite' => array ('slug' => 'lists', 'with_front' => false, 'hierarchical' => true),
            'supports' => array( 'title', 'editor')
        );
        register_post_type(__('gd_list', GEODIRLISTS_TEXTDOMAIN), $args);

    }
}