title: Problems adding action links to WordPress plugin?
body: <p>I'm trying to add some action links to a WordPress plugin.  I started with the following.</p>
  
  <pre><code>class Angelleye_PayPal_WooCommerce
  {
      public function __construct()
      {
          add_filter('plugin_action_links', array($this,'plugin_action_links'));
      }
  
      public function plugin_action_links($actions)
      {
          $custom_actions = array(
              'configure' =&gt; sprintf( '&lt;a href="%s"&gt;%s&lt;/a&gt;', admin_url( 'admin.php?page=wc-settings&amp;tab=checkout' ), __( 'Configure', 'paypal-for-woocommerce' ) ),
              'docs'      =&gt; sprintf( '&lt;a href="%s" target="_blank"&gt;%s&lt;/a&gt;', 'http://docs.angelleye.com/paypal-for-woocommerce/', __( 'Docs', 'paypal-for-woocommerce' ) ),
              'support'   =&gt; sprintf( '&lt;a href="%s" target="_blank"&gt;%s&lt;/a&gt;', 'http://www.angelleye.com/contact-us/', __( 'Support', 'paypal-for-woocommerce' ) ),
              'review'    =&gt; sprintf( '&lt;a href="%s" target="_blank"&gt;%s&lt;/a&gt;', 'http://wordpress.org/support/view/plugin-reviews/paypal-for-woocommerce', __( 'Write a Review', 'paypal-for-woocommerce' ) ),
          );
  
          // add the links to the front of the actions list
          return array_merge( $custom_actions, $actions );
      }
  }
  </code></pre>
  
  <p>This works except that it puts the links on every single plugin that's currently enabled instead of just my own.  I'm looking at the <a href="https://codex.wordpress.org/Plugin_API/Filter_Reference/plugin_action_links_%28plugin_file_name%29" rel="nofollow">WordPress codex info about this</a>, and it shows to use the filename appended to the filter name.  So I made the adjustment like this:</p>
  
  <pre><code>add_filter('plugin_action_links_'.__FILE__, array($this,'plugin_action_links'));
  </code></pre>
  
  <p>When I do that, though, all of the links go away altogether and they don't show up anywhere, not even my own.  What am I doing wrong here?</p>