WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/26/2013 02:47:44 AM (7 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-admin/includes/class-wp-plugin-install-list-table.php.

Props naomicbush.
Fixes #25357.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php

    r25070 r25630  
    3838        $nonmenu_tabs = array( 'plugin-information' ); //Valid actions to perform which do not have a Menu item.
    3939
     40        /**
     41         * Filter the tabs shown on the Plugin Install screen.
     42         *
     43         * @since 2.7.0
     44         *
     45         * @param array $tabs The tabs shown on the Plugin Install screen. Defaults are 'dashboard', 'search',
     46         *                    'upload', 'featured', 'popular', 'new', and 'favorites'.
     47         */
    4048        $tabs = apply_filters( 'install_plugins_tabs', $tabs );
     49
     50        /**
     51         * Filter tabs not associated with a menu item on the Plugin Install screen.
     52         *
     53         * @since 2.7.0
     54         *
     55         * @param array $nonmenu_tabs The tabs that don't have a Menu item on the Plugin Install screen.
     56         */
    4157        $nonmenu_tabs = apply_filters( 'install_plugins_nonmenu_tabs', $nonmenu_tabs );
    4258
     
    89105        }
    90106
    91         $args = apply_filters( 'install_plugins_table_api_args_' . $tab, $args );
     107        /**
     108         * Filter API request arguments for each Plugin Install screen tab.
     109         *
     110         * The dynamic portion of the hook name, $tab, refers to the plugin install tabs.
     111         * Default tabs are 'dashboard', 'search', 'upload', 'featured', 'popular', 'new',
     112         * and 'favorites'.
     113         *
     114         * @since 3.7.0
     115         *
     116         * @param array|bool $args Plugin Install API arguments.
     117         */
     118        $args = apply_filters( "install_plugins_table_api_args_$tab", $args );
    92119
    93120        if ( !$args )
     
    128155            <div class="tablenav top">
    129156                <div class="alignleft actions">
    130                     <?php do_action( 'install_plugins_table_header' ); ?>
     157                    <?php
     158                    /**
     159                     * Fires before the Plugin Install table header pagination is displayed.
     160                     *
     161                     * @since 2.7.0
     162                     */
     163                    do_action( 'install_plugins_table_header' ); ?>
    131164                </div>
    132165                <?php $this->pagination( $which ); ?>
     
    222255            }
    223256
     257            /**
     258             * Filter the install action links for a plugin.
     259             *
     260             * @since 2.7.0
     261             *
     262             * @param array $action_links An array of plugin action hyperlinks. Defaults are links to Details and Install Now.
     263             * @param array $plugin       The plugin currently being listed.
     264             */
    224265            $action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin );
    225266        ?>
Note: See TracChangeset for help on using the changeset viewer.