[wp-trac] [WordPress Trac] #38169: Remove the "edit" link from each plugin row on the Plugins screen
WordPress Trac
noreply at wordpress.org
Tue Sep 27 12:10:24 UTC 2016
#38169: Remove the "edit" link from each plugin row on the Plugins screen
-------------------------+------------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: ux-feedback | Focuses: administration
-------------------------+------------------------------
Comment (by wbcomdesigns):
Hi @johnbillion
For your site specific
You can add following codes inside Child Theme's function.php
{{{
add_filter('plugin_action_links', 'disable_plugin_edit', 10, 4);
function disable_plugin_edit($actions, $plugin_file, $plugin_data,
$context) {
// Remove edit link for all
if (array_key_exists('edit', $actions)) {
unset($actions['edit']);
}
return $actions;
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38169#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list