plugin_action_links这个,会在plugins.php,显示每个plugin的时候都会进去转一圈。
其实有个更好的带通配符的钩子,
plugin_action_links_{}
add_filter(‘plugin_action_links_’ . plugin_basename( __FILE__ ), ‘callback_func’, 9999, 2 );
}

上面这个定位在:
\wp-admin\includes\class-wp-plugins-list-table.php”(449,40):
$actions = apply_filters( $prefix . “plugin_action_links_$plugin_file”, $actions, $plugin_file, $plugin_data, $context );