How to use registered_post_type Hook and modify post type registration Create custom post type hook for products inside function.php file add_action( 'init', 'wpyog_register_products_cpt' ); /** * Register Products Custom Post Type */ function wpyog_register_products_cpt() { // change 'wpyog_products' to whatever your text_domain is. /** Setup labels */ $labels = array( 'name' => x_( 'Products', 'wpyog_products' ), 'singular_name' => x_( 'Product', 'wpyog_products' ), 'add_new' => x_( 'Add New', 'wpyog_products' ), 'all_items' => x_( 'All Products', 'wpyog_products' ), 'add_new_item' ...
Coding Cheatsheets - Learn web development code and tutorials for Software developers which will helps you in project. Get help on JavaScript, PHP, XML, and more.