[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-admin/includes/ -> class-wp-plugins-list-table.php (summary)

List Table API: WP_Plugins_List_Table class

File Size: 1656 lines (58 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_Plugins_List_Table:: (22 methods):
  __construct()
  get_table_classes()
  ajax_user_can()
  prepare_items()
  _search_callback()
  _order_callback()
  no_items()
  search_box()
  get_columns()
  get_sortable_columns()
  get_views()
  get_bulk_actions()
  bulk_actions()
  extra_tablenav()
  current_action()
  display_rows()
  single_row()
  get_primary_column_name()
  add_dependents_to_dependency_plugin_row()
  add_dependencies_to_dependent_plugin_row()
  get_dependency_view_details_link()
  get_view_details_link()


Class: WP_Plugins_List_Table  - X-Ref

Core class used to implement displaying installed plugins in a list table.

__construct( $args = array()   X-Ref
Constructor.

param: array $args An associative array of arguments.

get_table_classes()   X-Ref

return: array

ajax_user_can()   X-Ref

return: bool

prepare_items()   X-Ref


_search_callback( $plugin )   X-Ref

param: array $plugin
return: bool

_order_callback( $plugin_a, $plugin_b )   X-Ref

param: array $plugin_a
param: array $plugin_b
return: int

no_items()   X-Ref


search_box( $text, $input_id )   X-Ref
Displays the search box.

param: string $text     The 'submit' button label.
param: string $input_id ID attribute value for the search input field.

get_columns()   X-Ref

return: string[] Array of column titles keyed by their column name.

get_sortable_columns()   X-Ref

return: array

get_views()   X-Ref

return: array

get_bulk_actions()   X-Ref

return: array

bulk_actions( $which = '' )   X-Ref

param: string $which

extra_tablenav( $which )   X-Ref

param: string $which

current_action()   X-Ref

return: string

display_rows()   X-Ref


single_row( $item )   X-Ref

param: array $item

get_primary_column_name()   X-Ref
Gets the name of the primary column for this specific list table.

return: string Unalterable name for the primary column, in this case, 'name'.

add_dependents_to_dependency_plugin_row( $dependency )   X-Ref
Prints a list of other plugins that depend on the plugin.

param: string $dependency The dependency's filepath, relative to the plugins directory.

add_dependencies_to_dependent_plugin_row( $dependent )   X-Ref
Prints a list of other plugins that the plugin depends on.

param: string $dependent The dependent plugin's filepath, relative to the plugins directory.

get_dependency_view_details_link( $name, $slug )   X-Ref
Returns a 'View details' like link for a dependency.

param: string $name The dependency's name.
param: string $slug The dependency's slug.
return: string A 'View details' link for the dependency.

get_view_details_link( $name, $slug )   X-Ref
Returns a 'View details' link for the plugin.

param: string $name The plugin's name.
param: string $slug The plugin's slug.
return: string A 'View details' link for the plugin.



Generated : Mon Mar 18 08:20:01 2024 Cross-referenced by PHPXref