$languages */ public function can_translate_all( array $languages ): bool; /** * Tells if the user has the specified capability. * * @since 3.8 * * @param string $capability Capability name. * @param mixed ...$args Optional further parameters, typically starting with an object ID. * @return bool */ public function has_cap( $capability, ...$args ): bool; /** * Returns the preferred language of the user. * * @since 3.8 * * @return string The preferred language slug, empty string if no preferred language is found. */ public function get_preferred_language_slug(): string; /** * Checks if the current user has the rights to assign a language to an object and dies if not. * * @since 3.8 * * @param PLL_Language $language The language to assign. * @return void|never Dies if the user does not have the rights, does nothing otherwise. */ public function can_translate_or_die( PLL_Language $language ): void; }