wpbp / language
Function wrapper for register,unregister,get language and get string for WPML, Polylang and Ceceppa Multilingua
Installs: 2 504
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
This package is auto-updated.
Last update: 2022-07-25 23:52:15 UTC
README
Wrap specific methods to get string or register it or get the language for Ceceppa Multilingua, Polylang and WPML plugins.
Install
composer require wpbp/language:dev-master
composer-php52 supported.
Example
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' );