| 1 |
<?php |
| 2 |
return; |
| 3 |
|
| 4 |
/* |
| 5 |
|
| 6 |
add_action('init', 'test_wpdeepl_taxonomy' ); |
| 7 |
function test_wpdeepl_taxonomy() { |
| 8 |
|
| 9 |
$labels = array( |
| 10 |
'name' => _x( 'Formations', 'taxonomy general name', 'textdomain' ), |
| 11 |
'singular_name' => _x( 'Formation', 'taxonomy singular name', 'textdomain' ), |
| 12 |
'search_items' => __( 'Search Formations', 'textdomain' ), |
| 13 |
'all_items' => __( 'All Formations', 'textdomain' ), |
| 14 |
'parent_item' => __( 'Parent Formation', 'textdomain' ), |
| 15 |
'parent_item_colon' => __( 'Parent Formation:', 'textdomain' ), |
| 16 |
'edit_item' => __( 'Edit Formation', 'textdomain' ), |
| 17 |
'update_item' => __( 'Update Formation', 'textdomain' ), |
| 18 |
'add_new_item' => __( 'Add New Formation', 'textdomain' ), |
| 19 |
'new_item_name' => __( 'New Formation Name', 'textdomain' ), |
| 20 |
'menu_name' => __( 'Formation', 'textdomain' ), |
| 21 |
); |
| 22 |
|
| 23 |
$args = array( |
| 24 |
'labels' => $labels, |
| 25 |
'public' => true, |
| 26 |
'rewrite' => false, |
| 27 |
'hierarchical' => false, |
| 28 |
'show_ui' => true, |
| 29 |
'show_admin_column' => true, |
| 30 |
); |
| 31 |
register_taxonomy( 'formation','post', $args ); |
| 32 |
|
| 33 |
} |
| 34 |
|
| 35 |
*/ |