Files
roi-theme/wp-content/plugins/remove-dashboard-access-for-non-admins/remove-dashboard-access.php
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

37 lines
967 B
PHP
Executable File

<?php
/**
* Plugin Name: Remove Dashboard Access
* Plugin URI: https://www.trustedlogin.com/remove-dashboard-access/
* Description: Removes Dashboard access for certain users based on capability.
* Version: 1.2.1
* Author: TrustedLogin
* Author URI: https://www.trustedlogin.com
* License: GPLv2
* Requires PHP: 5.3
* Text Domain: remove_dashboard_access
*/
// Bail if called directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// RDA_Options Class
require_once( dirname( __FILE__ ) . '/inc/class.rda-options.php' );
// RDA_Remove_Access Class
require_once( dirname( __FILE__ ) . '/inc/class.rda-remove-access.php' );
// Load options instance
if ( class_exists( 'RDA_Options' ) ) {
$load = new RDA_Options;
// Set up options array on activation.
register_activation_hook( __FILE__, array( $load, 'activate' ) );
// Run it
if ( class_exists( 'RDA_Remove_Access' ) ) {
$access = new RDA_Remove_Access( $load->capability(), $load->settings );
}
}