SlideShare a Scribd company logo
A Friendlier, Safer Admin
@cliffseal
cliffseal.com/
friendlyadmin
SRSLY, THE
ADMIN?
“I am super
good at it.”
YOU, MAYBE
MANY USERS
Friendlier, Safer WordPress Admin Areas
Friendlier, Safer WordPress Admin Areas
SAFE ZONE
DRAGONS
OH HEY,
HERE’S STUFF
¯_(ツ)_/¯
&FRIENDLIER SAFER
LET’S MAKE IT
FOR EVERYONE
CLEAN
HOUSE
Step 1
DO NOT NEED
function yourplugin_remove_tools() {
remove_submenu_page( 'tools.php', 'tools.php' );
}
add_action( 'admin_menu', 'yourplugin_remove_tools', 999 );
MENU FUBAR
function yourplugin_remove_admin_bar_links() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu('w3tc-faq');
$wp_admin_bar->remove_menu('w3tc-support');
}
add_action( 'wp_before_admin_bar_render',
'yourplugin_remove_admin_bar_links' );
DASHBORED
function yourplugin_disable_dashboard_widgets() {
remove_meta_box( 'dashboard_primary', 'dashboard',
'normal' );
}
add_action( 'admin_init',
'yourplugin_disable_dashboard_widgets' );
KNOW YOUR
ROLE
Step 2
GET WIDGET
function yourplugin_add_theme_caps() {
$role_object = get_role( 'editor' );
$role_object->add_cap( 'edit_theme_options' );
}
add_action( 'admin_init', ‘yourplugin_add_theme_caps' );
LESS
NAGS
Step 3
AD BLOCKER
function yourplugin_remove_customizer_nags() {
global $wp_customize;
$wp_customize->remove_section( get_template() .
'_theme_info');
}
add_action( 'customize_register',
‘yourplugin_remove_customizer_nags', 20 );
NEED-TO-KNOW
function yourplugin_remove_gotdang_nags() {
remove_action( 'admin_notices',
'woothemes_updater_notice' );
}
add_action( 'init', 'yourplugin_remove_gotdang_nags');
UNPLUG
Step 4
HIDE YOSELF
function return_false() {
return false;
}
add_filter( ‘show_advanced_plugins', 'return_false' );
HIDE OTHERS
function yourplugin_hide_plugin_details( $links, $file ) {
$links = array();
return $links;
}
add_filter( ‘plugin_row_meta',
'yourplugin_hide_plugin_details', 10, 2 );
NO THANKS
function yourplugin_hide_plugin_links( $links ) {
if ( !empty($links['deactivate']) ) {
$links = array(
'deactivate' => $links['deactivate']
);
}
return $links;
}
add_filter( ‘plugin_action_links_wordpress-seo/wp-seo.php',
‘yourplugin_hide_plugin_links' );
function yourplugin_filter_plugins( $plugins ) {
$hidden = array(
'Sucuri Security - Auditing, Malware Scanner and
Hardening',
'W3 Total Cache',
'Amazon S3 and CloudFront'
);
if ( !isset($_GET['seeplugins']) || $_GET['seeplugins'] !==
'fisho' ) {
foreach ($plugins as $key => &$plugin ) {
if ( in_array( $plugin["Name"], $hidden ) ) {
unset($plugins[$key]);
}
}
}
return $plugins;
}
add_filter( ‘all_plugins', ‘yourplugin_filter_plugins' );
function yourplugin_remove_tools() {
remove_submenu_page( 'tools.php', 'tools.php' );
remove_menu_page( 'sucuriscan' );
remove_menu_page( 'w3tc_dashboard' );
remove_menu_page( 'amazon-web-services' );
remove_submenu_page( 'options-general.php', 'wpmandrill' );
remove_submenu_page( 'plugins.php', 'cloudflare' );
}
add_action( 'admin_menu', 'yourplugin_remove_tools', 999 );
NO TOUCHY
DEFINE( 'DISALLOW_FILE_EDIT', TRUE );
Friendlier, Safer WordPress Admin Areas
/* You better only be doing this if you’re 100% in charge of
updating things for clients and don’t want them adding anything. */
define( 'DISALLOW_FILE_MODS', true );
DIY (NO, YOU)
EMPOWER USERS
TO LOVE
WORDPRESS
QUESTIONS?
Thank you

More Related Content

PPTX
Java script errors & exceptions handling
PPTX
Sins Against Drupal 2
PPTX
Drupal sins 2016 10-06
PDF
jQuery 實戰經驗講座
PPTX
Cordova training : Day 6 - UI development using Framework7
PDF
WordCamp Geneva Presentation - Customising WordPress' Admin Panel - 19 Nov. 2016
DOCX
PPTX
Click and scroll event conflict (for magento
Java script errors & exceptions handling
Sins Against Drupal 2
Drupal sins 2016 10-06
jQuery 實戰經驗講座
Cordova training : Day 6 - UI development using Framework7
WordCamp Geneva Presentation - Customising WordPress' Admin Panel - 19 Nov. 2016
Click and scroll event conflict (for magento

What's hot (20)

PDF
Imageslider
PDF
There's a Filter For That
PDF
CSS3 and jQuery
PPSX
WordPress Theme Design and Development Workshop - Day 3
PPT
WordPress Third Party Authentication
KEY
ARTDM 170 Week 4: JavaScript Effects
PDF
CSS3 vs jQuery
KEY
Keeping It Simple
PPTX
Web Design Course - Lecture 20 - Bootstrap Dropdown, Button group, Input grou...
PPT
Perl gui
PDF
JavaScriptフレームワーク比較!
PDF
BDD revolution - or how we came back from hell
PPTX
A Two-step Dance with Django and Jinja2 Templates
PDF
Web-First Design Patterns
PDF
Jinja2 Templates - San Francisco Flask Meetup
PPTX
WordPress overloading Gravityforms using hooks, filters and extending classes
PPT
Slimme Joomla! Templating Tips en Truuks
PDF
006 實作小玩具功能:chrome desktop notification
KEY
Who Needs Ruby When You've Got CodeIgniter
PPTX
PHPUnit with Mocking and Crawling
Imageslider
There's a Filter For That
CSS3 and jQuery
WordPress Theme Design and Development Workshop - Day 3
WordPress Third Party Authentication
ARTDM 170 Week 4: JavaScript Effects
CSS3 vs jQuery
Keeping It Simple
Web Design Course - Lecture 20 - Bootstrap Dropdown, Button group, Input grou...
Perl gui
JavaScriptフレームワーク比較!
BDD revolution - or how we came back from hell
A Two-step Dance with Django and Jinja2 Templates
Web-First Design Patterns
Jinja2 Templates - San Francisco Flask Meetup
WordPress overloading Gravityforms using hooks, filters and extending classes
Slimme Joomla! Templating Tips en Truuks
006 實作小玩具功能:chrome desktop notification
Who Needs Ruby When You've Got CodeIgniter
PHPUnit with Mocking and Crawling
Ad

Viewers also liked (20)

PDF
People Over Pixels: Meaningful UX That Scales
PDF
Чем может быть полезен стек ELK
PDF
No one cares about your content (yet): WordCamp Charleston 2014
PDF
Usability, Groupthink, and Authority
PDF
Not your father's seo
PPTX
Local development environment
PDF
WordCamp Orange County 2016
PPTX
2016 WordCamp Pittsburgh - Let's Write a Plugin
PDF
Projektowanie i rozwój struktury serwisu z perspektywy SEO i UX
PDF
Cómo sacar el máximo provecho de tu proveedor de hosting
PDF
Как опубликовать свою тему в директорию WordPress
PDF
Learning by Doing: 10 Lessons in Pushing your WordPress Development Skills
PDF
Rapid Prototyping with WordPress Page Builders - WordCamp Asheville 2016 - an...
DOC
Ru quran kuliev_no_comments
PPT
งานนำเสนอ1
PDF
Get Started in Professional WordPress Design & Development
PPT
The Leslie F. Schwartz Pancreatic Cancer Research Foundation
PDF
No One Cares About Your Content (Yet): WordCamp Miami 2013
PPTX
Parallelism
PPTX
Model liniowy Wintersa
People Over Pixels: Meaningful UX That Scales
Чем может быть полезен стек ELK
No one cares about your content (yet): WordCamp Charleston 2014
Usability, Groupthink, and Authority
Not your father's seo
Local development environment
WordCamp Orange County 2016
2016 WordCamp Pittsburgh - Let's Write a Plugin
Projektowanie i rozwój struktury serwisu z perspektywy SEO i UX
Cómo sacar el máximo provecho de tu proveedor de hosting
Как опубликовать свою тему в директорию WordPress
Learning by Doing: 10 Lessons in Pushing your WordPress Development Skills
Rapid Prototyping with WordPress Page Builders - WordCamp Asheville 2016 - an...
Ru quran kuliev_no_comments
งานนำเสนอ1
Get Started in Professional WordPress Design & Development
The Leslie F. Schwartz Pancreatic Cancer Research Foundation
No One Cares About Your Content (Yet): WordCamp Miami 2013
Parallelism
Model liniowy Wintersa
Ad

Similar to Friendlier, Safer WordPress Admin Areas (20)

PDF
Using and reusing CakePHP plugins
PDF
Empowering users: modifying the admin experience
DOCX
Sample_Rule_Ruleset.docx
PDF
Building Large jQuery Applications
PPTX
10 Things Every Plugin Developer Should Know (WordCamp Atlanta 2013)
PPTX
Oracle Hardening scripts V1.2_DBA.pptxon kelu
PDF
WordPress Capabilities Magic
PPT
Pluggin creation
ZIP
First Steps in Drupal Code Driven Development
PDF
The Settings API
KEY
Advanced jQuery
PDF
The state of Symfony2 - SymfonyDay 2010
PPT
07 Php Mysql Update Delete
PDF
Voices That Matter: JavaScript Events
PDF
User onboarding for WordPress plugins
PDF
Best Practices in Plugin Development (WordCamp Seattle)
PPTX
AngularJS, More Than Directives !
PDF
Virtual Madness @ Etsy
PDF
How to Create A Magento Adminhtml Controller in Magento Extension
PDF
Symfony Guard Authentication: Fun with API Token, Social Login, JWT and more
Using and reusing CakePHP plugins
Empowering users: modifying the admin experience
Sample_Rule_Ruleset.docx
Building Large jQuery Applications
10 Things Every Plugin Developer Should Know (WordCamp Atlanta 2013)
Oracle Hardening scripts V1.2_DBA.pptxon kelu
WordPress Capabilities Magic
Pluggin creation
First Steps in Drupal Code Driven Development
The Settings API
Advanced jQuery
The state of Symfony2 - SymfonyDay 2010
07 Php Mysql Update Delete
Voices That Matter: JavaScript Events
User onboarding for WordPress plugins
Best Practices in Plugin Development (WordCamp Seattle)
AngularJS, More Than Directives !
Virtual Madness @ Etsy
How to Create A Magento Adminhtml Controller in Magento Extension
Symfony Guard Authentication: Fun with API Token, Social Login, JWT and more

More from Cliff Seal (18)

PDF
Trust in the Future
PDF
Building Advocates with World-Class Customer Experiences
PDF
Mastering B2B Email
PDF
Death to Boring B2B Marketing, Part 2: Jobs-to-Be-Done
PDF
DIY WordPress Site Management: Configure, Launch, and Maintain
PDF
Inviting Experimentation by Design
PDF
Death to Boring B2B Marketing: How Applying Design Thinking Drives Success
PDF
Introducing WordPress Multitenancy (Wordcamp Vegas/Orlando 2015/WPCampus)
PDF
Temporary Cache Assistance (Transients API): WordCamp Birmingham 2014
PDF
Meaningful UX At Any Scale
PDF
Temporary Cache Assistance (Transients API): WordCamp Phoenix 2014
PDF
No One Cares About Your Content (Yet): WordCamp Chicago 2013
PDF
Speed Things Up with Transients
PDF
A Brief History of Metal
PDF
No One Cares About Your Content (Yet): WordCamp Phoenix 2013
PDF
WordPress and Pardot: The World’s Newest Power Couple
PDF
No One Cares About Your Content (Yet): Digital Atlanta 2012
KEY
Empowering Non-Profits with WordPress
Trust in the Future
Building Advocates with World-Class Customer Experiences
Mastering B2B Email
Death to Boring B2B Marketing, Part 2: Jobs-to-Be-Done
DIY WordPress Site Management: Configure, Launch, and Maintain
Inviting Experimentation by Design
Death to Boring B2B Marketing: How Applying Design Thinking Drives Success
Introducing WordPress Multitenancy (Wordcamp Vegas/Orlando 2015/WPCampus)
Temporary Cache Assistance (Transients API): WordCamp Birmingham 2014
Meaningful UX At Any Scale
Temporary Cache Assistance (Transients API): WordCamp Phoenix 2014
No One Cares About Your Content (Yet): WordCamp Chicago 2013
Speed Things Up with Transients
A Brief History of Metal
No One Cares About Your Content (Yet): WordCamp Phoenix 2013
WordPress and Pardot: The World’s Newest Power Couple
No One Cares About Your Content (Yet): Digital Atlanta 2012
Empowering Non-Profits with WordPress

Recently uploaded (20)

PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
Approach and Philosophy of On baking technology
PDF
Encapsulation theory and applications.pdf
PPTX
A Presentation on Touch Screen Technology
PDF
Web App vs Mobile App What Should You Build First.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Hybrid model detection and classification of lung cancer
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
A novel scalable deep ensemble learning framework for big data classification...
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
A Presentation on Artificial Intelligence
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
cloud_computing_Infrastucture_as_cloud_p
Approach and Philosophy of On baking technology
Encapsulation theory and applications.pdf
A Presentation on Touch Screen Technology
Web App vs Mobile App What Should You Build First.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Hybrid model detection and classification of lung cancer
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
A novel scalable deep ensemble learning framework for big data classification...
Programs and apps: productivity, graphics, security and other tools
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Hindi spoken digit analysis for native and non-native speakers
Building Integrated photovoltaic BIPV_UPV.pdf
A comparative study of natural language inference in Swahili using monolingua...
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Unlocking AI with Model Context Protocol (MCP)
A Presentation on Artificial Intelligence

Friendlier, Safer WordPress Admin Areas