Skip to content

Instantly share code, notes, and snippets.

View eartisan-uk's full-sized avatar

eArtisan eartisan-uk

View GitHub Profile
@eartisan-uk
eartisan-uk / functions.php
Created January 23, 2020 17:33 — forked from alexander-young/functions.php
Cleanup WordPress plugin admin
// Removing plugin controls from admin
function remove_plugin_controls($actions, $plugin_file, $plugin_data, $context){
if (array_key_exists('edit', $actions)) {
unset($actions['edit']);
}
if (array_key_exists('deactivate', $actions)) {