Commit e4c4a05d authored by agnez's avatar agnez

ranger fonction du theme vers le plugin

parent bec6bddc
......@@ -554,8 +554,14 @@ function save_author_field() {
add_action( 'init', 'taxo_2_posttypes' );
function taxo_2_posttypes() {
register_taxonomy_for_object_type('publicationtag', 'publication');
register_taxonomy_for_object_type('membertag', 'member');
register_taxonomy_for_object_type( 'publicationtag', 'publication' );
register_taxonomy_for_object_type( 'membertag', 'member' );
register_taxonomy_for_object_type( 'post_tag', 'page' );
register_taxonomy_for_object_type( 'post_tag', 'tribe_events' );
register_taxonomy_for_object_type( 'post_tag', 'publication' );
register_taxonomy_for_object_type( 'category', 'page' );
register_taxonomy_for_object_type( 'category', 'tribe_events' );
register_taxonomy_for_object_type( 'category', 'publication' );
}
// end Taxonomies
......
......@@ -10,16 +10,6 @@
load_child_theme_textdomain( 'eduhubchild', get_stylesheet_directory() . '/languages' );//Loads the child theme textdomain.
}
add_action( 'after_setup_theme', 'eduhubchild_setup' );
add_action( 'init', 'taxo2posttypes' );
function taxo2posttypes() {
register_taxonomy_for_object_type( 'post_tag', 'page' );
register_taxonomy_for_object_type( 'post_tag', 'tribe_events' );
register_taxonomy_for_object_type( 'post_tag', 'publication' );
register_taxonomy_for_object_type( 'category', 'page' );
register_taxonomy_for_object_type( 'category', 'tribe_events' );
register_taxonomy_for_object_type( 'category', 'publication' );
}
?>
<?php
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment