✨ Magic File Manager

🚀 Hostinger Optimized
🖥️ Server: Apache
💻 System: Linux bom1plzcpnl503817.prod.bom1.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
👤 User: pnj6a06usxf3 (9714991)
🐘 PHP: 8.1.34
🚫 Disabled: ✨ NONE

💻 Terminal

📁 /home/pnj6a06usxf3/public_html/shivshaktihospital.co.in
$

📄 add-capabilities.php

📁 Path: ./wp-content/plugins/pro-elements/modules/notes/database/migrations/add-capabilities.php
📊 Size: 805 B
🔒 Perm: 0644
📝 MIME: text/x-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 );
			}
		}
	}
}
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨