install_themes_tabs

install_themes_tabs

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.6.2

apply_filters('install_themes_tabs') is found 2 times:

  • /wp-admin/includes/class-wp-theme-install-list-table.php line 72
     
    		$nonmenu_tabs = array( 'theme-information' ); // Valid actions to perform which do not have a Menu item.
    
    		/** This filter is documented in wp-admin/theme-install.php */
    		$tabs = apply_filters( 'install_themes_tabs', $tabs );
    
    		/**
    		 * Filters tabs not associated with a menu item on the Install Themes screen.
    		 *
    		 * @since 2.8.0
    		 *
    
  • /wp-admin/theme-install.php line 177
    	 * @since 2.8.0
    	 *
    	 * @param string[] $tabs Associative array of the tabs shown on the Add Themes screen. Default is 'upload'.
    	 */
    	$tabs = apply_filters( 'install_themes_tabs', array( 'upload' => __( 'Upload Theme' ) ) );
    	if ( ! empty( $tabs['upload'] ) && current_user_can( 'upload_themes' ) ) {
    		echo ' <button type="button" class="upload-view-toggle page-title-action hide-if-no-js" aria-expanded="false">' . __( 'Upload Theme' ) . '</button>';
    	}
    	?>
    
    	<hr class="wp-header-end">