Motor Yacht
if ( ! function_exists('Motor_Yacht') ) {
// Register Custom Post Type
function Motor_Yacht() {
$labels = array(
'name' => _x( 'Moto Yachts', 'Post Type General Name', 'sant_motor_yacht' ),
'singular_name' => _x( 'Moto Yacht', 'Post Type Singular Name', 'sant_motor_yacht' ),
'menu_name' => __( 'Moto Yachts', 'sant_motor_yacht' ),
'name_admin_bar' => __( 'Moto Yachts', 'sant_motor_yacht' ),
'archives' => __( 'Moto Yacht Archives', 'sant_motor_yacht' ),
'attributes' => __( 'Moto Yacht Attributes', 'sant_motor_yacht' ),
'parent_item_colon' => __( 'Parent Moto Yacht:', 'sant_motor_yacht' ),
'all_items' => __( 'All Moto Yachts', 'sant_motor_yacht' ),
'add_new_item' => __( 'Add New Moto Yacht', 'sant_motor_yacht' ),
'add_new' => __( 'Add New Moto Yacht', 'sant_motor_yacht' ),
'new_item' => __( 'New Moto Yacht', 'sant_motor_yacht' ),
'edit_item' => __( 'Edit Moto Yacht', 'sant_motor_yacht' ),
'update_item' => __( 'Update Moto Yacht', 'sant_motor_yacht' ),
'view_item' => __( 'View Moto Yacht', 'sant_motor_yacht' ),
'view_items' => __( 'View Moto Yachts', 'sant_motor_yacht' ),
'search_items' => __( 'Search Moto Yacht', 'sant_motor_yacht' ),
'not_found' => __( 'Moto Yacht Not found', 'sant_motor_yacht' ),
'not_found_in_trash' => __( 'Moto Yacht Not found in Trash', 'sant_motor_yacht' ),
'featured_image' => __( 'Featured Image', 'sant_motor_yacht' ),
'set_featured_image' => __( 'Set featured image', 'sant_motor_yacht' ),
'remove_featured_image' => __( 'Remove featured image', 'sant_motor_yacht' ),
'use_featured_image' => __( 'Use as featured image', 'sant_motor_yacht' ),
'insert_into_item' => __( 'Insert into Moto Yacht', 'sant_motor_yacht' ),
'uploaded_to_this_item' => __( 'Uploaded to this Moto Yacht', 'sant_motor_yacht' ),
'items_list' => __( 'Moto Yachts list', 'sant_motor_yacht' ),
'items_list_navigation' => __( 'Moto Yachts list navigation', 'sant_motor_yacht' ),
'filter_items_list' => __( 'Filter Moto Yachts list', 'sant_motor_yacht' ),
);
$rewrite = array(
'slug' => 'motor_yacht',
'with_front' => true,
'pages' => true,
'feeds' => false,
);
$args = array(
'label' => __( 'Moto Yacht', 'sant_motor_yacht' ),
'description' => __( 'Our Motor Yacht', 'sant_motor_yacht' ),
'labels' => $labels,
'supports' => array( 'title', 'thumbnail' ),
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-airplane',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'rewrite' => $rewrite,
'capability_type' => 'post',
);
register_post_type( 'motor_yachts', $args );
}
add_action( 'init', 'Motor_Yacht', 0 );
}