Placement instruction

4.00K viewsGeneral
0

In the ‘Ask a Question’ form, you added two instructions for title and description. How can I modify the words?

‘Write your thoughts in one short sentence’ sounds better than ‘Write a meaningful title for the question’. Just in the case that someone doesn’t know what is ‘title’..

0

If you need to adapt it to another language, this is translatable, you can put your translation in your language file. (see other questions on “how to translate”)

If you want to change English text or don’t want to bother with proper translating, you could use this snippet:

add_filter('ap_ask_form_fields', 'd_ap_ask_form_fields');
function d_ap_ask_form_fields($args, $editing) {
    $args['fields'][0]['placeholder'] = "Question in one sentence 123";
    $args['fields'][0]['desc'] = "Write a meaningful title for the question. 456";
    return $args;
}

@Rahul, I don’t like this [0], can this thing have a ‘key’ please?
(I don’t know PHP, is there already some good future-proof way?)

Yes, me too. After 2.4 we will work on custom field feature at that time we will improve this.