display_plugins_table

Display plugin content based on plugin list.

Description

display_plugins_table(); 

Usage

  1. if ( !function_exists( 'display_plugins_table' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/plugin-install.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = display_plugins_table(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/plugin-install.php  
  1. function display_plugins_table() { 
  2. global $wp_list_table; 
  3.  
  4. switch ( current_filter() ) { 
  5. case 'install_plugins_favorites' : 
  6. if ( empty( $_GET['user'] ) && ! get_user_option( 'wporg_favorites' ) ) { 
  7. return; 
  8. break; 
  9. case 'install_plugins_recommended' : 
  10. echo '<p>' . __( 'These suggestions are based on the plugins you and other users have installed.' ) . '</p>'; 
  11. break; 
  12. case 'install_plugins_beta' : 
  13. printf( 
  14. '<p>' . __( 'You are using a development version of WordPress. These feature plugins are also under development. <a href="%s">Learn more</a>.' ) . '</p>',  
  15. 'https://make.wordpress.org/core/handbook/about/release-cycle/features-as-plugins/' 
  16. ); 
  17. break; 
  18.  
  19. ?> 
  20. <form id="plugin-filter" method="post"> 
  21. <?php $wp_list_table->display(); ?> 
  22. </form> 
  23. <?php