[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
elementor-pro
/
modules
/
announcements
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 triggers
SET
[ DEL ]
📄 module.php
2,570 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: module.php
<?php namespace ElementorPro\Modules\Announcements; use Elementor\Core\Base\App as BaseApp; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Module extends BaseApp { /** * @return bool */ public static function is_active(): bool { return is_admin(); } /** * @return string */ public function get_name(): string { return 'announcements'; } public function __construct() { parent::__construct(); add_filter( 'elementor/announcements/raw_announcements', function ( $raw_announcements ) { $raw_announcement = [ 'title' => esc_html__( 'Keep Your Website’s Shine On', 'elementor-pro' ), 'description' => sprintf( '<p>%s</p><ul><li>%s</li><li>%s</li><li>%s</li><li>%s</li></ul>', esc_html__( 'Your Elementor Pro subscription has expired. Renew it now to regain access to the Pro features that elevate your website.', 'elementor-pro' ), esc_html__( 'Manage and edit every part of your website, including pages, templates, headers, footers, and more.', 'elementor-pro' ), esc_html__( 'Increase engagement and conversion with Elementor’s marketing features including Forms, and Popups.', 'elementor-pro' ), esc_html__( 'Update your website’s content and design using Elementor Pro’s professional widgets and features for any need.', 'elementor-pro' ), esc_html__( 'Keep your website secure and compatible by updating your Elementor Pro website to the latest version.', 'elementor-pro' ) ), 'media' => [ 'type' => 'image', 'src' => ELEMENTOR_PRO_ASSETS_URL . 'images/announcements/license-expired.png?' . ELEMENTOR_PRO_VERSION, ], 'cta' => [ [ 'label' => esc_html__( 'Renew Now', 'elementor-pro' ), 'variant' => 'primary', 'target' => '_blank', 'url' => 'https://go.elementor.com/renew-license-editor-expired-modal/', ], [ 'label' => esc_html__( 'Learn More', 'elementor-pro' ), 'target' => '_blank', 'url' => 'https://go.elementor.com//learn-more-editor-expired-modal/', ], ], 'triggers' => [ [ 'action' => 'isLicenseExpired', ], ], ]; array_unshift( $raw_announcements, $raw_announcement ); return $raw_announcements; }, 400 ); add_filter( 'elementor/announcements/trigger_object', function( $object_trigger, $trigger ) { if ( ! empty( $trigger['action'] ) && 'isLicenseExpired' === $trigger['action'] ) { $object_trigger = new Triggers\IsLicenseExpired(); } return $object_trigger; }, 400, 2 ); } }