Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: plugin_install_action_links

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
256
257                /**
258                 * Filter the install action links for a plugin.
259                 *
260                 * @since 2.7.0
261                 *
262                 * @param array $action_links An array of plugin action hyperlinks. Defaults are links to Details and Install Now.
263                 * @param array $plugin       The plugin currently being listed.
264                 */
265                $action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin );
266           ?>
267           <tr>
268                <td class="name column-name"<?php echo $style['name']; ?>><strong><?php echo $title; ?></strong>
269                     <div class="action-links"><?php if ( !empty( $action_links ) ) echo implode( ' | ', $action_links ); ?></div>
270                </td>
271                <td class="vers column-version"<?php echo $style['version']; ?>><?php echo $version; ?></td>
272                <td class="vers column-rating"<?php echo $style['rating']; ?>>
273                     <?php wp_star_rating( array( 'rating' => $plugin['rating'], 'type' => 'percent', 'number' => $plugin['num_ratings'] ) ); ?>
274                </td>