Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

WPBP/Language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Language

License Downloads

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' );