filter( function ( $value, $key ) { return (bool) $key; } )->toArray(); } /** * @return array */ private static function getAllSettings() { /** @var \TranslationManagement $iclTranslationManagement */ global $iclTranslationManagement; if ( ! $iclTranslationManagement ) { return []; } if ( empty( $iclTranslationManagement->settings ) ) { $iclTranslationManagement->init(); } return $iclTranslationManagement->get_settings(); } }