Viewing 1 replies (of 1 total)
  • Plugin Author DesignWall

    (@designwall)

    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.