rk_para_anagrafica
if ( ! function_exists('rk_cpt_anagrafica') ) {
// Register Custom Post Type
function rk_cpt_anagrafica() {
$labels = array(
'name' => 'Soci',
'singular_name' => 'Socio',
'menu_name' => 'Anagrafica Socio',
'name_admin_bar' => 'Anagrafica Socio',
'parent_item_colon' => 'Parent Item:',
'all_items' => 'Tutti i soci',
'add_new_item' => 'Add New Item',
'add_new' => 'Add New',
'new_item' => 'New Item',
'edit_item' => 'Edit Item',
'update_item' => 'Update Item',
'view_item' => 'View Item',
'search_items' => 'Search Item',
'not_found' => 'Not found',
'not_found_in_trash' => 'Not found in Trash',
);
$args = array(
'label' => 'cpt_anagrafica',
'description' => 'Anagrafica Socio',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'revisions', 'custom-fields', ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 100,
'menu_icon' => 'dashicons-universal-access',
'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',
);
register_post_type( 'cpt_anagrafica', $args );
}
// Hook into the 'init' action
add_action( 'init', 'rk_cpt_anagrafica', 0 );
}