Skip Navigation
availability:

WPML Version: 3.8

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.

type:
action
category:
Miscellaneous
parameters:
do_action( 'wpml_tf_feedback_open_link', $args );
$args
(array) (Optional) 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.
hook 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.

Example


<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 );
?>