Une URL permettant d\'obtenir plus d\'information sur le tag.

'; } add_action( 'post_tag_edit_form_fields', 'kspace_edit_term_fields_moreinfo', 10, 2 ); function kspace_edit_term_fields_moreinfo( $term, $taxonomy ) { $value = get_term_meta( $term->term_id, 'plus-dinfo', true ); echo '

Une URL permettant d\'obtenir plus d\'information sur le tag.

'; } add_action( 'created_post_tag', 'kspace_save_term_fields_moreinfo' ); add_action( 'edited_post_tag', 'kspace_save_term_fields_moreinfo' ); function kspace_save_term_fields_moreinfo( $term_id ) { update_term_meta( $term_id, 'plus-dinfo', sanitize_text_field( $_POST[ 'plus-dinfo' ] ) ); } ?>