WPML
do_action( 'wpml_tf_feedback_open_link', $args );
Type
action
Category
Miscellaneous
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.

Arguments

$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.

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

icl_ls_languages, wpml_sync_custom_field_copied_value, wpml_ls_enable_ajax_navigation, wpml_element_type, wpml_setting, wpml_sub_setting, wpml_exclude_post_from_auto_translate, wpml_forms_config_ninja-forms, wpml_forms_config_wpforms, wpml_translatable_user_meta_fields

All 30 Miscellaneous hooks →