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 |
---|---|
478 |
|
479 | /** |
480 | * Filter the install action links for a plugin. |
481 | * |
482 | * @since 2.7.0 |
483 | * |
484 | * @param array $action_links An array of plugin action hyperlinks. Defaults are links to Details and Install Now. |
485 | * @param array $plugin The plugin currently being listed. |
486 | */ |
487 | $action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin ); |
488 |
|
489 | $date_format = __( 'M j, Y @ H:i' ); |
490 | $last_updated_timestamp = strtotime( $plugin['last_updated'] ); |
491 | ?> |
492 | <div class="plugin-card plugin-card-<?php echo sanitize_html_class( $plugin['slug'] ); ?>"> |
493 | <div class="plugin-card-top"> |
494 | <a href="<?php echo esc_url( $details_link ); ?>" class="thickbox plugin-icon"><img src="<?php echo esc_attr( $plugin_icon_url ) ?>" /></a> |
495 | <div class="name column-name"> |
496 | <h4><a href="<?php echo esc_url( $details_link ); ?>" class="thickbox"><?php echo $title; ?></a></h4> |