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
349
350                     if( isset($plugin['homepage']) )
351                          $title = '<a target="_blank" href="' . esc_attr($plugin['homepage']) . '">' . $title . '</a>';
352
353                     $action_links = array();
354                     $action_links[] = '<a href="' . admin_url('plugin-install.php?tab=plugin-information&amp;plugin=' . $plugin['slug'] .
355                                              '&amp;TB_iframe=true&amp;width=600&amp;height=550') . '" class="thickbox onclick" title="' .
356                                              esc_attr($name) . '">' . __('Install') . '</a>';
357
358                     $action_links = apply_filters('plugin_install_action_links', $action_links, $plugin);
359                ?>
360                <tr>
361                     <td class="name"><?php echo $title; ?></td>
362                     <td class="vers"><?php echo $version; ?></td>
363                     <td class="vers">
364                          <div class="star-holder" title="<?php printf(_n('(based on %s rating)', '(based on %s ratings)', $plugin['num_ratings']), number_format_i18n($plugin['num_ratings'])) ?>">
365                               <div class="star star-rating" style="width: <?php echo esc_attr($plugin['rating']) ?>px"></div>
366                               <div class="star star5"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('5 stars') ?>" /></div>
367                               <div class="star star4"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('4 stars') ?>" /></div>