Hammer Time
asked 10 years ago

We modified the submit-question.php template to redirect to login but wondering if there is a way to update the ask question button to ‘Login to ask question’ by overriding the dwqa_get_ask_question_link function. We noticed your site does this already but we would like to modify the /inc/template-functions.php file but don’t want to lose our changes when doing an update
if (is_user_logged_in())
$label = $label ? $label : __(‘Ask a question’,’dwqa’);
} else {
$label = $label ? $label : __(‘Login to ask a question’,’dwqa’);

Powered by DW Question & Answer Pro