WPML
do_action( 'wpml_tf_feedback_open_link', $args );
类型
action
类别
杂项
WPML 版本
3.8

说明

显示 WPML 翻译反馈功能的前端链接。单击此链接将显示一个对话框,供用户留下有关当前页面翻译的反馈。

参数

$args
(数组)(可选)用于筛选翻译反馈链接输出的参数:
  • title – 在前端显示的链接文本。
  • classes  要添加到 <a> 标签的类。

使用示例

将以下代码添加到您的主题的 footer.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 );
?>

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

所有 30 个 杂项 钩子 →