Plugin Directory

Changeset 711123


Ignore:
Timestamp:
05/10/2013 10:36:39 PM (13 years ago)
Author:
Sanskript
Message:

Added custom_post_type slug and icon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soldpress/branches/0.9.5A/custom_field_types.php

    r710174 r711123  
    1919        );
    2020
     21        $rewrite = array(
     22            'slug'                => 'listing',
     23            'with_front'          => true,
     24            'pages'               => true,
     25            'feeds'               => true,
     26        );
     27
    2128        $args = array(
    22             'label'               => __( 'property', 'text_domain' ),
     29            'label'               => __( 'sp_property', 'text_domain' ),
    2330            'description'         => __( 'Property information pages', 'text_domain' ),
    2431            'labels'              => $labels,
     
    3138            'show_in_admin_bar'   => true,
    3239            'menu_position'       => 5,
    33             'menu_icon'           => '',
     40            'menu_icon'           => plugins_url( '/images/soldpress-home-admin.png' , __FILE__ ),
    3441            'can_export'          => true,
    3542            'has_archive'         => true,
    3643            'exclude_from_search' => false,
    37             'publicly_queryable'  => true,     
     44            'publicly_queryable'  => true, 
     45            'rewrite'             => $rewrite,
    3846            'capability_type'     => 'page',
    3947        );
    4048
    4149        register_post_type( 'property', $args );
     50        flush_rewrite_rules( false );
    4251    }
    4352
Note: See TracChangeset for help on using the changeset viewer.