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
670                 * Filters the install action links for a plugin.
671                 *
672                 * @since 2.7.0
673                 *
674                 * @param string[] $action_links An array of plugin action links.
675                 *                               Defaults are links to Details and Install Now.
676                 * @param array    $plugin       An array of plugin data. See {@see plugins_api()}
677                 *                               for the list of possible values.
678                 */
679                $action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin );
680
681                $last_updated_timestamp = strtotime( $plugin['last_updated'] );
682                ?>
683           <div class="plugin-card plugin-card-<?php echo sanitize_html_class( $plugin['slug'] ); ?>">
684                <?php
685                if ( ! $compatible_php || ! $compatible_wp ) {
686                     echo '<div class="notice inline notice-error notice-alt"><p>';
687                     if ( ! $compatible_php && ! $compatible_wp ) {
688                          _e( 'This plugin does not work with your versions of WordPress and PHP.' );