WFix Comercial – Registro de Módulos
/* Plugin Name: WFix Comercial – Core Description: Registro de Custom Post Types para Representantes, Clientes e Pedidos. Version: 1.0.0 */ function wfix_register_custom_assets() { // Registro de Representantes register_post_type(‘representantes’, [ ‘labels’ => [‘name’ => ‘Representantes’, ‘singular_name’ => ‘Representante’], ‘public’ => true, ‘menu_icon’ => ‘dashicons-businessman’, ‘supports’ => [‘title’, ‘editor’, ‘custom-fields’], ‘show_in_rest’ => true, ]); // Registro de Clientes register_post_type(‘clientes_wfix’, [ ‘labels’ => [‘name’ => ‘Clientes WFix’, ‘singular_name’ => ‘Cliente’], ‘public’ => true, ‘menu_icon’ => ‘dashicons-groups’, ‘supports’ => [‘title’, ‘editor’, ‘custom-fields’], ‘show_in_rest’ => true, ]); // Registro de Pedidos register_post_type(‘pedidos_wfix’, [ ‘labels’ => [‘name’ => ‘Pedidos WFix’, ‘singular_name’ => ‘Pedido’], ‘public’ => true, ‘menu_icon’ => ‘dashicons-cart’, ‘supports’ => [‘title’, ‘editor’, ‘custom-fields’], ‘show_in_rest’ => true, ]); } add_action(‘init’, ‘wfix_register_custom_assets’);