Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $slug = get_theme_mod( 'property_permalink' );
- $slug = ( empty( $slug ) ) ? 'property' : $slug;
- $args = array(
- 'labels' => $labels,
- 'public' => true,
- 'publicly_queryable' => true,
- 'show_ui' => true,
- 'show_in_menu' => true,
- 'query_var' => true,
- 'rewrite' => array( 'slug' => $slug ),
- 'capability_type' => 'post',
- 'has_archive' => true,
- 'hierarchical' => false,
- 'menu_position' => null,
- 'supports' => $supports,
- 'taxonomies' => array( 'property_type' )
- );
- register_post_type( 'property', $args );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement