Title: How to Overwrite Labels?
Last modified: October 10, 2016

---

# How to Overwrite Labels?

 *  [Aridani](https://wordpress.org/support/users/aridaniv/)
 * (@aridaniv)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/how-to-overwrite-labels/)
 * Hi,
    How can I replace / configure the label of questions on queried object?
 * thanks

Viewing 1 replies (of 1 total)

 *  Plugin Author [DesignWall](https://wordpress.org/support/users/designwall/)
 * (@designwall)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/how-to-overwrite-labels/#post-8395036)
 * Hi,
    Thanks for contacting DesignWall and sorry for our late reply. About your
   matter, please try to add the following function into the file wp-content/themes/
   theme-folder/functions.php
 * add_action( ‘init’, ‘dwqa_theme_replace_all_question_name’, 999 );
    function 
   dwqa_theme_replace_all_question_name() { global $wp_taxonomies, $wp_post_types;
 *  $wp_taxonomies[‘dwqa-question_category’]->labels->name = ‘Forums’;
    $wp_taxonomies[‘
   dwqa-question_category’]->labels->singular_name = ‘Forums’; $wp_taxonomies[‘dwqa-
   question_category’]->labels->search_items = ‘Search Forums’; $wp_taxonomies[‘
   dwqa-question_category’]->labels->all_items = ‘All Forums’; $wp_taxonomies[‘dwqa-
   question_category’]->labels->parent_item = ‘Parent Forum’; $wp_taxonomies[‘dwqa-
   question_category’]->labels->parent_item_colon = ‘Parent Forum:’; $wp_taxonomies[‘
   dwqa-question_category’]->labels->edit_item = ‘Edit Forum’; $wp_taxonomies[‘dwqa-
   question_category’]->labels->view_item = ‘View Forum’; $wp_taxonomies[‘dwqa-question_category’]-
   >labels->update_item = ‘Update Forum’; $wp_taxonomies[‘dwqa-question_category’]-
   >labels->add_new_item = ‘Add New Forum’; $wp_taxonomies[‘dwqa-question_category’]-
   >labels->not_found = ‘No forums found’; $wp_taxonomies[‘dwqa-question_category’]-
   >labels->no_terms = ‘No forums’; $wp_taxonomies[‘dwqa-question_category’]->labels-
   >items_list_navigation = ‘Forums list navigation’; $wp_taxonomies[‘dwqa-question_category’]-
   >labels->items_list = ‘Forums list’; $wp_taxonomies[‘dwqa-question_category’]-
   >labels->menu_name = ‘Forums’; $wp_taxonomies[‘dwqa-question_category’]->labels-
   >name_admin_bar = ‘Forum’; $wp_taxonomies[‘dwqa-question_category’]->labels->
   archives = ‘All Forums’;
 *  $wp_taxonomies[‘dwqa-question_tag’]->labels->name = ‘Tags’;
    $wp_taxonomies[‘
   dwqa-question_tag’]->labels->singular_name = ‘Tags’; $wp_taxonomies[‘dwqa-question_tag’]-
   >labels->search_items = ‘Search Tags’; $wp_taxonomies[‘dwqa-question_tag’]->labels-
   >all_items = ‘All Tags’; $wp_taxonomies[‘dwqa-question_tag’]->labels->parent_item
   = ‘Parent Tag’; $wp_taxonomies[‘dwqa-question_tag’]->labels->parent_item_colon
   = ‘Parent Tag:’; $wp_taxonomies[‘dwqa-question_tag’]->labels->edit_item = ‘Edit
   Tag’; $wp_taxonomies[‘dwqa-question_tag’]->labels->view_item = ‘View Tag’; $wp_taxonomies[‘
   dwqa-question_tag’]->labels->update_item = ‘Update Tag’; $wp_taxonomies[‘dwqa-
   question_tag’]->labels->add_new_item = ‘Add New Tag’; $wp_taxonomies[‘dwqa-question_tag’]-
   >labels->not_found = ‘No Tags found’; $wp_taxonomies[‘dwqa-question_tag’]->labels-
   >no_terms = ‘No Tags’; $wp_taxonomies[‘dwqa-question_tag’]->labels->items_list_navigation
   = ‘Tags list navigation’; $wp_taxonomies[‘dwqa-question_tag’]->labels->items_list
   = ‘Tags list’; $wp_taxonomies[‘dwqa-question_tag’]->labels->menu_name = ‘Tags’;
   $wp_taxonomies[‘dwqa-question_tag’]->labels->name_admin_bar = ‘Tag’; $wp_taxonomies[‘
   dwqa-question_tag’]->labels->archives = ‘All Tags’;
 *  $wp_post_types[‘dwqa-question’]->label = ‘Topics’;
    $wp_post_types[‘dwqa-question’]-
   >labels->name = ‘Topics’; $wp_post_types[‘dwqa-question’]->labels->singular_name
   = ‘Topic’; $wp_post_types[‘dwqa-question’]->labels->add_new = ‘Add New Topic’;
   $wp_post_types[‘dwqa-question’]->labels->add_new_item = ‘Add New Topic’; $wp_post_types[‘
   dwqa-question’]->labels->edit_item = ‘Edit Topic’; $wp_post_types[‘dwqa-question’]-
   >labels->new_item = ‘New Topic’; $wp_post_types[‘dwqa-question’]->labels->view_item
   = ‘View Topic’; $wp_post_types[‘dwqa-question’]->labels->search_item = ‘Search
   Topics’; $wp_post_types[‘dwqa-question’]->labels->not_found = ‘Topics not found’;
   $wp_post_types[‘dwqa-question’]->labels->not_found_in_trash = ‘Topics not found
   in trash’; $wp_post_types[‘dwqa-question’]->labels->parent_item_colon = ‘Parent:
   Topic’; $wp_post_types[‘dwqa-question’]->labels->all_items = ‘Topics’; $wp_post_types[‘
   dwqa-question’]->labels->archives = ‘Forum’; $wp_post_types[‘dwqa-question’]-
   >labels->menu_name = ‘Forum’; $wp_post_types[‘dwqa-question’]->labels->name_admin_bar
   = ‘Forum’;
 *  $wp_post_types[‘dwqa-answer’]->label = ‘Replies’;
    $wp_post_types[‘dwqa-answer’]-
   >labels->name = ‘Replies’; $wp_post_types[‘dwqa-answer’]->labels->singular_name
   = ‘Reply’; $wp_post_types[‘dwqa-answer’]->labels->add_new = ‘Add New Reply’; 
   $wp_post_types[‘dwqa-answer’]->labels->add_new_item = ‘Add New Reply’; $wp_post_types[‘
   dwqa-answer’]->labels->edit_item = ‘Edit Reply’; $wp_post_types[‘dwqa-answer’]-
   >labels->new_item = ‘New Reply’; $wp_post_types[‘dwqa-answer’]->labels->view_item
   = ‘View Reply’; $wp_post_types[‘dwqa-answer’]->labels->search_item = ‘Search 
   Replies’; $wp_post_types[‘dwqa-answer’]->labels->not_found = ‘Replies not found’;
   $wp_post_types[‘dwqa-answer’]->labels->not_found_in_trash = ‘Replies not found
   in trash’; $wp_post_types[‘dwqa-answer’]->labels->parent_item_colon = ‘Parent:
   Reply’; $wp_post_types[‘dwqa-answer’]->labels->all_items = ‘Replies’; $wp_post_types[‘
   dwqa-answer’]->labels->archives = ‘Reply’; $wp_post_types[‘dwqa-answer’]->labels-
   >menu_name = ‘Reply’; $wp_post_types[‘dwqa-answer’]->labels->name_admin_bar =‘
   Reply’; }

Viewing 1 replies (of 1 total)

The topic ‘How to Overwrite Labels?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/dw-question-answer_fefdf9.svg)
 * [DW Question & Answer](https://wordpress.org/plugins/dw-question-answer/)
 * [Support Threads](https://wordpress.org/support/plugin/dw-question-answer/)
 * [Active Topics](https://wordpress.org/support/plugin/dw-question-answer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dw-question-answer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dw-question-answer/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [DesignWall](https://wordpress.org/support/users/designwall/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/how-to-overwrite-labels/#post-8395036)
 * Status: not resolved