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.
This hook occurs 2 times in this file.
| Line | Code | 
|---|---|
| 629 |      $result = wp_install_plugin( $download_url, 'show_message' ); | 
| 630 |  | 
| 631 |      if ( is_wp_error($result) ) { | 
| 632 |           show_message($result); | 
| 633 |           show_message( __('Installation Failed') ); | 
| 634 |      } else { | 
| 635 |           show_message( sprintf(__('Successfully installed the plugin <strong>%s %s</strong>.'), $plugin_information->name, $plugin_information->version) ); | 
| 636 |           $plugin_file = $result; | 
| 637 |  | 
| 638 |           $install_actions = apply_filters('install_plugin_complete_actions', array( | 
| 639 |                'activate_plugin' => '<a href="' . wp_nonce_url('plugins.php?action=activate&plugin=' . $plugin_file, 'activate-plugin_' . $plugin_file) . '" title="' . attribute_escape(__('Activate this plugin')) . '" target="_parent">' . __('Activate Plugin') . '</a>', | 
| 640 |                'plugins_page' => '<a href="' . admin_url('plugins.php') . '" title="' . attribute_escape(__('Goto plugins page')) . '" target="_parent">' . __('Return to Plugins page') . '</a>' | 
| 641 |                                    ), $plugin_information, $plugin_file); | 
| 642 |           if ( ! empty($install_actions) ) | 
| 643 |                show_message('<strong>' . __('Actions:') . '</strong> ' . implode(' | ', (array)$install_actions)); | 
| 644 |      } | 
| 645 | } | 
| 646 |  | 
| 647 | /** | 
| Line | Code | 
| 685 |      $result = wp_install_plugin_local_package( $package, 'show_message' ); | 
| 686 |  | 
| 687 |      if ( is_wp_error($result) ) { | 
| 688 |           show_message($result); | 
| 689 |           show_message( __('Installation Failed') ); | 
| 690 |      } else { | 
| 691 |           show_message( __('Successfully installed the plugin.') ); | 
| 692 |           $plugin_file = $result; | 
| 693 |  | 
| 694 |           $install_actions = apply_filters('install_plugin_complete_actions', array( | 
| 695 |                                    'activate_plugin' => '<a href="' . wp_nonce_url('plugins.php?action=activate&plugin=' . $plugin_file, 'activate-plugin_' . $plugin_file) . '" title="' . __('Activate this plugin') . '" target="_parent">' . __('Activate Plugin') . '</a>', | 
| 696 |                                    'plugins_page' => '<a href="' . admin_url('plugins.php') . '" title="' . __('Goto plugins page') . '" target="_parent">' . __('Return to Plugins page') . '</a>' | 
| 697 |                                    ), array(), $plugin_file); | 
| 698 |           if ( ! empty($install_actions) ) | 
| 699 |                show_message('<strong>' . __('Actions:') . '</strong> ' . implode(' | ', (array)$install_actions)); | 
| 700 |      } | 
| 701 | } | 
| 702 |  | 
| 703 | /** |