Skip to content

Commit

Permalink
Merge pull request #300 from thomasgriffin/feature/action-links-filter
Browse files Browse the repository at this point in the history
Allow other plugins to filter the action links similar to WP Core
  • Loading branch information
jrfnl committed Apr 22, 2015
2 parents 394f75d + f455a15 commit 4796f20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions class-tgm-plugin-activation.php
Original file line number Diff line number Diff line change
Expand Up @@ -1425,6 +1425,9 @@ public function column_plugin( $item ) {
);
}

$prefix = ( defined( 'WP_NETWORK_ADMIN' ) && WP_NETWORK_ADMIN ) ? 'network_admin_' : '';
$actions = apply_filters( "tgmpa_{$prefix}plugin_action_links", array_filter( $actions ), $item['slug'] );

return sprintf( '%1$s %2$s', $item['plugin'], $this->row_actions( $actions ) );

}
Expand Down

0 comments on commit 4796f20

Please sign in to comment.