Make WordPress Core

Changeset 25512


Ignore:
Timestamp:
09/20/2013 02:35:41 AM (11 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-admin/plugin-install.php.

Props naomicbush.
See #25229.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/plugin-install.php

    r24320 r25512  
    1010    define( 'IFRAME_REQUEST', true );
    1111
    12 /** WordPress Administration Bootstrap */
     12/**
     13 * WordPress Administration Bootstrap.
     14 */
    1315require_once('./admin.php');
    1416
     
    3436$body_id = $tab;
    3537
    36 do_action('install_plugins_pre_' . $tab); //Used to override the general interface, Eg, install or plugin information.
     38/**
     39 * Fires before each tab on the Install Plugins screen is loaded.
     40 *
     41 * The dynamic portion of the action hook, $tab, allows for targeting
     42 * individual tabs, for instance 'install_plugins_pre_plugin-information'.
     43 *
     44 * @since 2.7.0
     45 */
     46do_action( "install_plugins_pre_$tab" );
    3747
    3848get_current_screen()->add_help_tab( array(
     
    5868);
    5969
     70/**
     71 * WordPress Administration Template Header.
     72 */
    6073include(ABSPATH . 'wp-admin/admin-header.php');
    6174?>
     
    6780
    6881<br class="clear" />
    69 <?php do_action('install_plugins_' . $tab, $paged); ?>
     82<?php
     83/**
     84 * Fires after the plugins list table in each tab of the Install Plugins screen.
     85 *
     86 * The dynamic portion of the action hook, $tab, allows for targeting
     87 * individual tabs, for instance 'install_plugins_plugin-information'.
     88 *
     89 * @since 2.7.0
     90 *
     91 * @param int $paged The current page number of the plugins list table.
     92 */
     93?>
     94<?php do_action( "install_plugins_$tab", $paged ); ?>
    7095</div>
    7196<?php
     97/**
     98 * WordPress Administration Template Footer.
     99 */
    72100include(ABSPATH . 'wp-admin/admin-footer.php');
Note: See TracChangeset for help on using the changeset viewer.