WPML
wpml_post_edit_meta_box_context
类型
filter
类别
杂项
WPML 版本
4.2.8

说明

此过滤器定义了 WPML 文章编辑元数据框的放置位置。

参数

side
这将在侧边栏中显示 WPML 语言框。
normal
这将在主编辑器下方显示 WPML 语言框。
advanced
与“normal”相同,但优先级较低。因此,如果您有两个元数据框,一个的 context 设置为 normal,另一个设置为 advanced,则具有 normal 上下文的框将首先显示。

使用示例

add_filter('wpml_post_edit_meta_box_context', function (){
    return 'normal';
});

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_tf_feedback_open_link

所有 30 个 杂项 钩子 →