Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions includes/modify-caps.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ function rum_modify_theme_blvd_module_caps( $module_caps ) {
$module_caps['sliders'] = 'edit_pages';

// Theme Options
// TODO - further research required; Theme Options is displayed but doesn't save; "Cheatin’ uh?"
// $module_caps['options'] = 'edit_pages';
$module_caps['options'] = 'edit_pages';

// Widget Area Manager
// TODO - further research required; sidebars area not display in Editor menu
Expand Down
30 changes: 26 additions & 4 deletions modify-theme-blvd-plugin-capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
/*
Plugin Name: Modify Theme Blvd Plugin Capabilities
Description: Modify capabilities to allow Editors access to Theme Blvd plugins
Version: 0.3.1
Version: 0.3.2
Author: Scot Rumery
Author URI: http://rumspeed.com/scot-rumery/
Author URI: http://rumspeed.com
License: GPLv2
*/

/* Copyright 2013 Scot Rumery (email : [email protected])
/* Copyright 2023 Scot Rumery (email : [email protected])

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -29,7 +29,7 @@



define( 'RUM_MODIFY_CAPS_PLUGIN_VERSION', '0.3.1' );
define( 'RUM_MODIFY_CAPS_PLUGIN_VERSION', '0.3.2' );
define( 'RUM_MODIFY_CAPS_PLUGIN_DIR', dirname( __FILE__ ) );
define( 'RUM_MODIFY_CAPS_PLUGIN_URI', plugins_url( '' , __FILE__ ) );

Expand All @@ -39,3 +39,25 @@
// include files - these are simply to organize functions into logical areas
include_once( 'includes/modify-caps.php' );




register_activation_hook( __FILE__, 'mtbpc_plugin_activated' );
register_deactivation_hook( __FILE__, 'mtbpc_plugin_deactivated' );




function mtbpc_plugin_activated() {
$role = get_role( 'editor' );
$role->add_cap( 'manage_options' );
}




function mtbpc_plugin_deactivated() {
$role = get_role( 'editor' );
$role->remove_cap( 'manage_options' );
}