What would cause edit buttons for plugins in wordpress plugins page to disappear?

in the plugins page, under each plugins’ name usually there are buttons/links like “Deactivate | Edit | Settings”. Recently on one of my sites the “Edit” (and “Settings”) button has disappeared. I have just “Deactivate” or “Activate | Delete”.

My question is – what could cause this?

Read More

I am logged in as an administrator, so I should see the buttons. I suspect that something might have vent wrong with the installation of the last plugin but I am not sure.

Is there some scenario when these buttons get disabled (hidden) or do I have a bug / error?

EDIT:
This is happening on the server. I also have the exact same files (just checked with a comparer) running on my local computer, where plugins have all the buttons. I am now looking in the DB to find differences, but so far have not found anything significant.

Related posts

Leave a Reply

2 comments

  1. Sounds like a file permissions error, make sure the user the web server is running as (typically www-data or similar) has write permissions to the plugin files.

  2. Those “buttons” are called “plugin_action_links” and are/can be set by the plugin´s author.

    Some plugin authors choose do not include “settings” .

    If you have updated the plugin it might be that the new version does not include that ??

    Does the plugin itself work ?

    Is it the exact same version as on the other sites ?

    As for the “edit” link – it can also be set to not appear or be disabled by third-party plugins that has to do with user-permissions or visibility of links (like adminimize for example)

    example how to disable those links for plugin authors :

    add_filter( 'plugin_action_links', 'disable_plugin_footlinks', 10, 4 );
    function disable_plugin_footlinks( $actions, $plugin_file, $plugin_data, $context ) {
        // Remove edit link. if you want to remove selective use if statement
        if ( array_key_exists( 'edit', $actions ) )
            unset( $actions['edit'] );
        // Selectively remove deactivate link for specific plugins with if statement 
        if ( array_key_exists( 'deactivate', $actions ) && in_array( $plugin_file, array(
            'plugin1_specific_name_folder_/plugin1_name.php',
            'plugin2_name_folder_/plugin2_name.php'
        )))
            unset( $actions['deactivate'] );
        return $actions;
    }