• Tim

    (@timwakeling-1)


    Nice little plugin – thanks!

    Just a small thing … it looks like your plugin has added its “Settings” link on the Plugins screen not just to itself, but to every other plugin’s list entry as well?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Tim

    (@timwakeling-1)

    Just looked this up, and it seems you need to add an “if” statement around the two action lines in the bulk_postmeta_editor_settings_link function:

    if ( basename( plugin_dir_path( __FILE__ ) ) . ‘bulk-postmeta-editor.php’ === $plugin_file ) {
    $settings_link = ‘Settings‘;
    array_unshift($links, $settings_link);
    }

    That makes it only apply to your plugin. ??

    Thread Starter Tim

    (@timwakeling-1)

    Actually it turns out my edit there doesn’t quite do the trick. It stops Settings appearing on other plugins but it also doesn’t appear on yours then. I think a bit more fiddling with that function will be the answer, but I’m going to leave that to you. I’ve just removed it for now which will do me fine. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“Settings” added to every plugin in the plugins page’ is closed to new replies.