WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
326 |
|
327 | if( isset($plugin['homepage']) ) |
328 | $title = '<a target="_blank" href="' . attribute_escape($plugin['homepage']) . '">' . $title . '</a>'; |
329 |
|
330 | $action_links = array(); |
331 | $action_links[] = '<a href="' . admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin['slug'] . |
332 | '&TB_iframe=true&width=600&height=800') . '" class="thickbox onclick" title="' . |
333 | attribute_escape($name) . '">' . __('Install') . '</a>'; |
334 |
|
335 | $action_links = apply_filters('plugin_install_action_links', $action_links, $plugin); |
336 | ?> |
337 | <tr> |
338 | <td class="name"><?php echo $title; ?></td> |
339 | <td class="vers"><?php echo $version; ?></td> |
340 | <td class="vers"> |
341 | <div class="star-holder" title="<?php printf(__ngettext('(based on %s rating)', '(based on %s ratings)', $plugin['num_ratings']), number_format_i18n($plugin['num_ratings'])) ?>"> |
342 | <div class="star star-rating" style="width: <?php echo attribute_escape($plugin['rating']) ?>px"></div> |
343 | <div class="star star5"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('5 stars') ?>" /></div> |
344 | <div class="star star4"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('4 stars') ?>" /></div> |