📜  WPML - 向页脚添加浮动语言切换器 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:10.382000             🧑  作者: Mango

代码示例1
//WPML - Add a floating language switcher to the footer
 add_action('wp_footer', 'wpml_floating_language_switcher'); 
  
 function wpml_floating_language_switcher() { 
    echo '
';         //PHP action to display the language switcher (see https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/#using-php-actions)         do_action('wpml_add_language_selector');     echo '
'; }