| Server IP : 85.112.90.236 / Your IP : 192.168.1.26 Web Server : Apache System : Linux 85-112-90-236.cprapid.com 6.12.0-211.7.3.el10_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 12:46:58 EDT 2026 x86_64 User : ftechme ( 1002) PHP Version : 8.2.32 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/ftechme/public_html/wp-content/plugins/polylang/src/Model/ |
Upload File : |
<?php
/**
* @package Polylang
*/
namespace WP_Syntex\Polylang\Model;
/**
* Class to filter the list of languages to only include non-default languages.
*/
class Hide_Default implements Languages_Proxy_Interface {
/**
* Returns the proxy's key.
*
* @since 3.8
*
* @return string
*/
public function key(): string {
return 'hide_default';
}
/**
* Returns the list of non-default languages after passing it through this proxy.
*
* @since 3.8
*
* @param \PLL_Language[] $languages List of languages to filter.
* @return \PLL_Language[]
*/
public function filter( array $languages ): array {
return array_filter(
$languages,
static function ( $lang ) {
return ! $lang->is_default;
}
);
}
}