mcutting
asked 6 years ago

Hi. There is a function in /inc/extend/ultimate-member (loader.php) as follows
public function add_dw_question_answer_tab( $tabs ) {
$tabs[‘dwqatab’] = array(
‘name’ => __(‘Question & Answer’,’dwqa’),
‘icon’ => ‘um-faicon-question-circle’,
);

return $tabs;
}
Is there a filter that applies to this function ? Ideally, I want to change the “Name” array to something else.
 
Thanks

1 Answers
DominicStaff
answered 6 years ago

We have checked this issue. To resolve this issue, you can add the following code to the functions.php file:

add_filter('um_profile_tabs', 'custom_add_dw_question_answer_tab', 1002 );
function custom_add_dw_question_answer_tab( $tabs ) {
$tabs['dwqatab'] = array(
'name' => __('YOUR NAME TO DISPLAY','dwqa'),
'icon' => 'um-faicon-question-circle',
);

return $tabs;
}
mcutting
replied 6 years ago

Thanks very much, Dominic

Dominic Staff
replied 6 years ago

Please let me know if you have any issue or question. We will check and help you resolve it.

mcutting
replied 6 years ago

Hi Dominic,

No issues, thanks. All working so this can be closed.

Regds

Dominic Staff
replied 6 years ago

With all good wishes for a brilliant and happy Christmas season. Hope things are going all right with you 🙂

Powered by DW Question & Answer Pro