📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-06-30 18:09:38
📂
/ (Root)
/
home
/
orkouolp
/
web
/
orkofarms.com
/
wp-content
/
plugins
/
elementor-pro
/
modules
/
notes
/
database
/
migrations
📍 /home/orkouolp/web/orkofarms.com/wp-content/plugins/elementor-pro/modules/notes/database/migrations
🔄 Refresh
✏️
Editing: add-capabilities.php
Writable
<?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 ); } } } }
💾 Save Changes
❌ Cancel