wpbp/language

此包已被废弃且不再维护。未建议替代包。

用于 WPML、Polylang 和 Ceceppa Multilingua 的注册、注销、获取语言和获取字符串的功能包装器

1.0.0 2016-06-22 17:36 UTC

This package is auto-updated.

Last update: 2022-07-25 23:52:15 UTC


README

License Downloads

包装特定方法以获取字符串或注册它或获取 Ceceppa Multilingua、Polylang 和 WPML 插件的语言。

安装

composer require wpbp/language:dev-master

composer-php52 支持。

示例

echo get_language();

register_string( 'Test Wrapper', 'Test in progress', 'You are testing this wrapper' );

echo get_string( 'Test Wrapper', 'Test in progress', 'You are testing this wrapper' );

//Uncomment this after checked that in the plugin settings the string exist
deregister_string( 'Test Wrapper', 'Test in progress' );