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
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;
}
Thanks very much, Dominic
Please let me know if you have any issue or question. We will check and help you resolve it.
Hi Dominic,
No issues, thanks. All working so this can be closed.
Regds
With all good wishes for a brilliant and happy Christmas season. Hope things are going all right with you 🙂
Please login or Register to submit your answer