Метод |
Описание |
|
find_or_initialize_translation_details ( ) : object | null |
Try to find the transient for the translation set or retrieve them. |
|
hide_promo ( ) : boolean |
Check whether the promo should be hidden or not. |
|
init ( array $args ) |
This is where you decide where to display the messages and where you set the plugin specific variables. |
|
parse_translation_set ( object $set ) |
Set the needed private variables based on the results from Give Translate. |
|
promo_message ( ) : boolean | string |
Generates a promo message. |
|
retrieve_translation_details ( ) : object | null |
Retrieve the translation details from Give Translate. |
|
translation_details ( ) |
Try to get translation details from cache, otherwise retrieve them, then parse them. |
|