• Resolved kusmar

    (@kusmar)


    Hallo,

    Ik wil het woord gastenboekbericht veranderen in Ervaring. Hoe doe ik dat?

    Ik heb dit geprobeerd:
    function my_gwolle_gb_content_label( $label ) {
    // $label is a string
    $old = ‘Gastenboekbericht:’;
    $new = ‘Ervaring:’;
    $form_html = str_replace( $old, $new, $form_html );
    return $label;
    }
    add_filter( ‘gwolle_gb_content_label’, ‘my_gwolle_gb_content_label’, 10, 1 );

    https://www.reflexologisch.nl/ervaringsverhalen

    Dank je voor de hulp.

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

    (@mpol)

    Ah, dit zou beter moeten werken:

    function my_gwolle_gb_content_label( $label ) {
    // $label is a string
    $old = ‘Gastenboekbericht:’;
    $new = ‘Ervaring:’;
    $label = str_replace( $old, $new, $label );
    return $label;
    }
    add_filter( ‘gwolle_gb_content_label’, ‘my_gwolle_gb_content_label’, 10, 1 );

    Maar dit is hoe het in de documentatie staat, en is wat simpeler:

    function my_gwolle_gb_content_label( $label ) {
            // $label is a string
            $label = 'Ervaring';
            return $label;
    }
    add_filter( 'gwolle_gb_content_label', 'my_gwolle_gb_content_label', 10, 1 );
    Thread Starter kusmar

    (@kusmar)

    Dank je wel Marcel

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Naam gastenboekbericht veranderen’ is closed to new replies.