403Webshell
Server IP : 185.68.16.147  /  Your IP : 216.73.216.182
Web Server : Apache
System : Linux web789.default-host.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User : jt292766 ( 1182)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/jt292766/konstruktbud.com.ua/www/wp-content/plugins/polylang/src/Model/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/jt292766/konstruktbud.com.ua/www/wp-content/plugins/polylang/src/Model/Hide_Default.php
<?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;
			}
		);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit