Changeset 25630
- Timestamp:
- 09/26/2013 02:47:44 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php
r25070 r25630 38 38 $nonmenu_tabs = array( 'plugin-information' ); //Valid actions to perform which do not have a Menu item. 39 39 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 */ 40 48 $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 */ 41 57 $nonmenu_tabs = apply_filters( 'install_plugins_nonmenu_tabs', $nonmenu_tabs ); 42 58 … … 89 105 } 90 106 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 ); 92 119 93 120 if ( !$args ) … … 128 155 <div class="tablenav top"> 129 156 <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' ); ?> 131 164 </div> 132 165 <?php $this->pagination( $which ); ?> … … 222 255 } 223 256 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 */ 224 265 $action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin ); 225 266 ?>
Note: See TracChangeset
for help on using the changeset viewer.