How To Register Custom Post In WordPress

Register a Custom Post In WordPress


add_action( 'init', 'domain_hosting_entry' );
function domain_hosting_entry() {
register_post_type( 'Domain_Hosting',
array(
'labels' => array(
'name' => __( 'Domain Hosting Information', 'muhibul' ),
'all_items'     => __( 'All Domain Hosting Information', 'muhibul' ),
'singular_name' => __( 'Domain Hosting Item', 'muhibul' ),
'add_new'       => __( 'Add New Domain Hosting', 'muhibul' ),
'add_new_item'  => __( 'Add New Domain Hosting Item', 'muhibul' )
),
'public' => true,
'publicly_queryable' => true,
'has_password' => true,
'menu_icon' => 'dashicons-megaphone',
'supports' => array('title', 'editor', 'thumbnail' ),
'menu_position' => 14,
'has_archive' => true,
'rewrite' => array('slug' => 'domain-hosting'),
)
);

}


Comments

Popular posts from this blog

Remove Add New Post Sub Menu From Custom Post

How To Remove and Add Visit Site Menu From WordPress Admin Bar?

Register Custom Post Type