📁
SKYSHELL MANAGER
PHP v8.3.6
Create
Create
Path:
root
/
var
/
www
/
cstage
/
wp-includes
/
js
/
tinymce
/
themes
/
Name
Size
Perm
Actions
📁
inlite
-
0755
🗑️
🏷️
🔒
📁
modern
-
0755
🗑️
🏷️
🔒
📄
ms-files.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-activate.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: Avada.php
<?php /* * * * * * * * * * * * * * * * * * * * * * * ██████╗ ███╗ ███╗ ██████╗ ███████╗ * ██╔═══██╗████╗ ████║██╔════╝ ██╔════╝ * ██║ ██║██╔████╔██║██║ ███╗█████╗ * ██║ ██║██║╚██╔╝██║██║ ██║██╔══╝ * ╚██████╔╝██║ ╚═╝ ██║╚██████╔╝██║ * ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ * * @package : OMGF * @author : Daan van den Bergh * @copyright: © 2026 Daan van den Bergh * @url : https://daan.dev * * * * * * * * * * * * * * * * * * * */ namespace OMGF\Compatibility; use OMGF\Helper as OMGF; /** * @codeCoverageIgnore */ class Avada extends CompatibilityHookRegistrar { /** @var array $hooks */ protected $hooks = [ 'fusion_cache_reset_after' => self::HOOK_FLUSH_THIRD_PARTY ]; /** * Build class. */ public function __construct() { parent::__construct(); add_action( 'wp_after_insert_post', [ $this, 'maybe_flush_third_party_cache' ], 10, 2 ); } /** * Only flush the cache if this is a published post. * * @param $post_id * @param $post * * @return void */ public function maybe_flush_third_party_cache( $post_id, $post ) { if ( $post->post_status !== 'publish' || wp_is_post_revision( $post_id ) ) { return; } OMGF::flush_third_party_cache(); } }
Save