Viewing 1 replies (of 1 total)
  • Thread Starter missey

    (@arleneforte)

    Okay I figured out the answer (for those who wants to know)

    I just added these lines by using conditional statement:

    if ( empty( $val[‘label’] ) or ( true === $val[‘label’] ) )
    $val[‘label’] = $tax->labels->singular_name;
    if ((($tax->labels->singular_name) == ‘category’) or (($tax->labels->singular_name) == ‘Category’))
    $val[‘label’] = ‘Facility Name’;
    if ((($tax->labels->singular_name) == ‘tag’) or (($tax->labels->singular_name) == ‘Tag’))
    $val[‘label’] = ‘Department’;

Viewing 1 replies (of 1 total)
  • The topic ‘Change label name into other words (e.g. Category => Facility)’ is closed to new replies.