403Webshell
Server IP : 130.225.57.55  /  Your IP : 216.73.216.60
Web Server : Apache
System : Linux wp-vhost07 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /srv/www/reco2st.eu/https/wp-content/plugins/w3-total-cache/extension-example/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /srv/www/reco2st.eu/https/wp-content/plugins/w3-total-cache/extension-example/Extension_Example.php
<?php
/**
 * Example extension runtime bootstrap.
 *
 * @package W3TCExample
 */

namespace W3TCExample;

/**
 * Example extension frontend handler.
 */
class Extension_Example {
	/**
	 * W3 Total Cache config.
	 *
	 * @var \W3TC\Config
	 */
	private $w3tc_config;

	/**
	 * Runs extension.
	 *
	 * @return void
	 */
	public function run() {
		$this->w3tc_config = w3tc_config();

		if ( $this->w3tc_config->get_boolean( array( 'example', 'is_title_postfix' ) ) ) {
			add_filter( 'the_title', array( $this, 'the_title' ), 10, 2 );
		}
	}

	/**
	 * The_title filter handler.
	 *
	 * Adds a configured postfix to each post title.
	 *
	 * @param string $title Post title.
	 * @param int    $id    Post ID.
	 *
	 * @return string
	 */
	public function the_title( $title, $id ) {
		return $title .
			$this->w3tc_config->get_string( array( 'example', 'title_postfix' ) );
	}
}

/*
 * Loaded by W3 Total Cache when the extension is active.
 */
$w3tc_p = new Extension_Example();
$w3tc_p->run();

if ( is_admin() ) {
	$w3tc_p = new Extension_Example_Admin();
	$w3tc_p->run();
}

Youez - 2016 - github.com/yon3zu
LinuXploit