Title: WP_Themes_List_Table::no_items
Published: April 25, 2014
Last modified: May 20, 2026

---

# WP_Themes_List_Table::no_items()

## In this article

 * [Source](https://developer.wordpress.org/reference/classes/wp_themes_list_table/no_items/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_themes_list_table/no_items/?output_format=md#related)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_themes_list_table/no_items/?output_format=md#wp--skip-link--target)

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_themes_list_table/no_items/?output_format=md#source)󠁿

    ```php
    public function no_items() {
    	if ( $this->search_terms || $this->features ) {
    		_e( 'No items found.' );
    		return;
    	}

    	$blog_id = get_current_blog_id();
    	if ( is_multisite() ) {
    		if ( current_user_can( 'install_themes' ) && current_user_can( 'manage_network_themes' ) ) {
    			printf(
    				/* translators: 1: URL to Themes tab on Edit Site screen, 2: URL to Add Themes screen. */
    				__( 'You only have one theme enabled for this site right now. Visit the Network Admin to <a href="%1$s">enable</a> or <a href="%2$s">install</a> more themes.' ),
    				network_admin_url( 'site-themes.php?id=' . $blog_id ),
    				network_admin_url( 'theme-install.php' )
    			);

    			return;
    		} elseif ( current_user_can( 'manage_network_themes' ) ) {
    			printf(
    				/* translators: %s: URL to Themes tab on Edit Site screen. */
    				__( 'You only have one theme enabled for this site right now. Visit the Network Admin to <a href="%s">enable</a> more themes.' ),
    				network_admin_url( 'site-themes.php?id=' . $blog_id )
    			);

    			return;
    		}
    		// Else, fallthrough. install_themes doesn't help if you can't enable it.
    	} else {
    		if ( current_user_can( 'install_themes' ) ) {
    			printf(
    				/* translators: %s: URL to Add Themes screen. */
    				__( 'You only have one theme installed right now. Live a little! You can choose from over 1,000 free themes in the WordPress Theme Directory at any time: just click on the <a href="%s">Install Themes</a> tab above.' ),
    				admin_url( 'theme-install.php' )
    			);

    			return;
    		}
    	}
    	// Fallthrough.
    	printf(
    		/* translators: %s: Network title. */
    		__( 'Only the active theme is available to you. Contact the %s administrator for information about accessing additional themes.' ),
    		get_site_option( 'site_name' )
    	);
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-themes-list-table.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/class-wp-themes-list-table.php#L90)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-themes-list-table.php#L90-L134)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_themes_list_table/no_items/?output_format=md#related)󠁿

| Uses | Description | 
| [network_admin_url()](https://developer.wordpress.org/reference/functions/network_admin_url/)`wp-includes/link-template.php` |

Retrieves the URL to the admin area for the network.

  | 
| [current_user_can()](https://developer.wordpress.org/reference/functions/current_user_can/)`wp-includes/capabilities.php` |

Returns whether the current user has the specified capability.

  | 
| [_e()](https://developer.wordpress.org/reference/functions/_e/)`wp-includes/l10n.php` |

Displays translated text.

  | 
| [__()](https://developer.wordpress.org/reference/functions/__/)`wp-includes/l10n.php` |

Retrieves the translation of $text.

  | 
| [get_current_blog_id()](https://developer.wordpress.org/reference/functions/get_current_blog_id/)`wp-includes/load.php` |

Retrieves the current site ID.

  | 
| [is_multisite()](https://developer.wordpress.org/reference/functions/is_multisite/)`wp-includes/load.php` |

Determines whether Multisite is enabled.

  | 
| [admin_url()](https://developer.wordpress.org/reference/functions/admin_url/)`wp-includes/link-template.php` |

Retrieves the URL to the admin area for the current site.

  | 
| [get_site_option()](https://developer.wordpress.org/reference/functions/get_site_option/)`wp-includes/option.php` |

Retrieve an option value for the current network based on name of option.

  |

[Show 6 more](https://developer.wordpress.org/reference/classes/wp_themes_list_table/no_items/?output_format=md#)
[Show less](https://developer.wordpress.org/reference/classes/wp_themes_list_table/no_items/?output_format=md#)

| Used by | Description | 
| [WP_Themes_List_Table::display_rows_or_placeholder()](https://developer.wordpress.org/reference/classes/wp_themes_list_table/display_rows_or_placeholder/)`wp-admin/includes/class-wp-themes-list-table.php` |  |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_themes_list_table%2Fno_items%2F)
before being able to contribute a note or feedback.