• Resolved windman

    (@windman)


    Hello,
    I would rather have the field name COUNTRY instead of CITY. I don’t find anywhere to change it. Can it be changed or should I buy the Add-on to be able to manipulate that?

    Regards,
    Windman

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hi,
    In the form you can change the label to Country, with this PHP code:

    function my_gwolle_gb_author_origin_label( $label ) {
            // $label is a string
            $label = 'Country';
            return $label;
    }
    add_filter( 'gwolle_gb_author_origin_label', 'my_gwolle_gb_author_origin_label', 10, 1 );

    I would think that is all you need.

    The add-on is not for changing the default fields, they still are what they are. You can add extra fields with it however.

    Thread Starter windman

    (@windman)

    Great! Thanks! I got parsing errors (something like ‘unexpected return at line 5’) first when I had copied the code from the notification email but after had copied it from above it went through and works. Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add field or change name of field?’ is closed to new replies.