Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

app

app post type for ramoon website

// Register Custom Post Type
function app_post_type() {

	$labels = array(
		'name'                  => _x( 'app', 'Post Type General Name', 'game' ),
		'singular_name'         => _x( 'برنامه', 'Post Type Singular Name', 'game' ),
		'menu_name'             => __( 'برنامه', 'game' ),
		'name_admin_bar'        => __( 'برنامه', 'game' ),
		'archives'              => __( 'آرشیو برنامه ها', 'game' ),
		'attributes'            => __( 'ویژگی ها', 'game' ),
		'parent_item_colon'     => __( 'Parent Item:', 'game' ),
		'all_items'             => __( 'همه موارد', 'game' ),
		'add_new_item'          => __( 'افزودن مورد جدید', 'game' ),
		'add_new'               => __( 'اضافه کردن', 'game' ),
		'new_item'              => __( 'اضافه کردن', 'game' ),
		'edit_item'             => __( 'Edit Item', 'game' ),
		'update_item'           => __( 'Update Item', 'game' ),
		'view_item'             => __( 'View Item', 'game' ),
		'view_items'            => __( 'مشاهده موارد', 'game' ),
		'search_items'          => __( 'جستجو مورد', 'game' ),
		'not_found'             => __( 'Not found', 'game' ),
		'not_found_in_trash'    => __( 'Not found in Trash', 'game' ),
		'featured_image'        => __( 'Featured Image', 'game' ),
		'set_featured_image'    => __( 'Set featured image', 'game' ),
		'remove_featured_image' => __( 'Remove featured image', 'game' ),
		'use_featured_image'    => __( 'Use as featured image', 'game' ),
		'insert_into_item'      => __( 'Insert into item', 'game' ),
		'uploaded_to_this_item' => __( 'Uploaded to this item', 'game' ),
		'items_list'            => __( 'Items list', 'game' ),
		'items_list_navigation' => __( 'Items list navigation', 'game' ),
		'filter_items_list'     => __( 'Filter items list', 'game' ),
	);
	$args = array(
		'label'                 => __( 'برنامه', 'game' ),
		'description'           => __( 'app post type', 'game' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'thumbnail', 'comments', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes', 'post-formats' ),
		'taxonomies'            => array( 'category', 'post_tag' ),
		'hierarchical'          => false,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 10,
		'show_in_admin_bar'     => true,
		'show_in_nav_menus'     => true,
		'can_export'            => true,
		'has_archive'           => true,
		'exclude_from_search'   => false,
		'publicly_queryable'    => true,
		'capability_type'       => 'post',
		'show_in_rest'          => true,
		'rest_base'             => 'app',
	);
	register_post_type( 'post_type', $args );

}
add_action( 'init', 'app_post_type', 0 );