| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
List Table API: WP_Plugin_Install_List_Table class
| File Size: | 916 lines (28 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 1 file wp-admin/includes/plugin-install.php |
WP_Plugin_Install_List_Table:: (15 methods):
ajax_user_can()
get_installed_plugins()
get_installed_plugin_slugs()
prepare_items()
no_items()
get_views()
views()
display()
display_tablenav()
get_table_classes()
get_columns()
order_callback()
display_rows()
get_dependencies_notice()
get_more_details_link()
Class: WP_Plugin_Install_List_Table - X-Ref
Core class used to implement displaying plugins to install in a list table.| ajax_user_can() X-Ref |
| Checks if the current user has permissions to perform an Ajax action. return: bool Whether the current user can perform an Ajax action. |
| get_installed_plugins() X-Ref |
| Returns the list of known plugins. Uses the transient data from the updates API to determine the known installed plugins. return: array |
| get_installed_plugin_slugs() X-Ref |
| Returns a list of slugs of installed plugins, if known. Uses the transient data from the updates API to determine the slugs of known installed plugins. This might be better elsewhere, perhaps even within get_plugins(). return: array |
| prepare_items() X-Ref |
| Prepares the plugins list for display. |
| no_items() X-Ref |
| Outputs the message when no plugins are found. |
| get_views() X-Ref |
| Gets the list of views (tabs) available for the plugins list table. return: array<string, string> View link markup keyed by view ID ('plugin-install-' followed by the tab slug). |
| views() X-Ref |
| Overrides parent views so we can use the filter bar display. |
| display() X-Ref |
| Displays the plugin install table. Overrides the parent display() method to provide a different container. |
| display_tablenav( $which ) X-Ref |
| Generates the table navigation. param: string $which The location of the navigation: Either 'top' or 'bottom'. |
| get_table_classes() X-Ref |
| Gets a list of CSS classes for the list table container element. Unlike in the parent class, these are applied to a `div` element rather than a `table` element. return: string[] Array of CSS classes for the container element. |
| get_columns() X-Ref |
| Gets the list of columns for the plugins list table. return: array<string, string> Array of column titles keyed by their column name. |
| order_callback( $plugin_a, $plugin_b ) X-Ref |
| Callback for sorting plugins. param: array<string, mixed>|object $plugin_a The first plugin data. param: array<string, mixed>|object $plugin_b The second plugin data. return: int Comparison result. |
| display_rows() X-Ref |
| Generates the list table rows. |
| get_dependencies_notice( $plugin_data ) X-Ref |
| Returns a notice containing a list of dependencies required by the plugin. param: array $plugin_data An array of plugin data. See {@see plugins_api()} return: string A notice containing a list of dependencies required by the plugin, |
| get_more_details_link( $name, $slug ) X-Ref |
| Creates a 'More details' link for the plugin. param: string $name The plugin's name. param: string $slug The plugin's slug. return: string The 'More details' link for the plugin. |
| Generated : Sat Oct 17 08:20:33 2026 | Cross-referenced by PHPXref |