WPML
SignaturePHP
do_action( 'wpml_tf_feedback_open_link', $args );

Description

Display the front-end link to the WPML Translation Feedback feature. Clicking this link displays the dialog box for users to leave their feedback about the current page’s translation.

Arguments

  • $argsarrayOptional

    Arguments to filter the translation feedback link output:
    • title

      Link text to display on the front-end.
    • classes

      classes to add to the <a> tag.

Example Usage

Add the code below to your theme’s footer.php template file or where you want the translation feedback link to be displayed at. The link in this example would be underlined and red.

PHP
<style>
    .my-custom-rate-link {
        text-decoration: underline;
        color: red;
    }
</style>

<?php $args = array( 'title' => __( 'Please rate the page', 'my-text-domain' ),
    'classes' => 'my-custom-rate-link',
);
do_action( 'wpml_tf_feedback_open_link', $args );
?>