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'),
)
);
}
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
Post a Comment