Method | Description | |
---|---|---|
__construct ( string $meta_key, Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce, Inpsyde\MultilingualPress\Module\UserAdminLanguage\LanguageRepository $language_repository ) | Constructor. Sets up the properties. | |
markup ( WP_User $user ) : string | Returns the markup for the user setting. | |
title ( WP_User $user ) : string | Returns the title of the user setting. |
Method | Description | |
---|---|---|
get_language_option ( string $text, string $value, string $selected ) : string | Returns the HTML of the option element according to the given arguments. | |
get_language_options ( array $language_files, string $selected ) : string | Returns the HTML of the option elements according to the given available languages and the selected one. |
public __construct ( string $meta_key, Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce, Inpsyde\MultilingualPress\Module\UserAdminLanguage\LanguageRepository $language_repository ) | ||
$meta_key | string | User meta key. |
$nonce | Inpsyde\MultilingualPress\Common\Nonce\Nonce | Nonce validator object. |
$language_repository | Inpsyde\MultilingualPress\Module\UserAdminLanguage\LanguageRepository | Language repository object. |