Title: wp_skip_paused_themes
Published: May 7, 2019
Last modified: August 20, 2026

---

# wp_skip_paused_themes( string[] $themes ): string[]

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/wp_skip_paused_themes/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/wp_skip_paused_themes/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/wp_skip_paused_themes/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/wp_skip_paused_themes/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/wp_skip_paused_themes/?output_format=md#changelog)

Filters a given list of themes, removing any paused themes from it.

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/wp_skip_paused_themes/?output_format=md#parameters)󠁿

 `$themes`string[]required

Array of absolute theme directory paths.

## 󠀁[Return](https://developer.wordpress.org/reference/functions/wp_skip_paused_themes/?output_format=md#return)󠁿

 string[] Filtered array of absolute paths to themes, without any paused themes.

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

    ```php
    function wp_skip_paused_themes( array $themes ) {
    	$paused_themes = wp_paused_themes()->get_all();

    	if ( empty( $paused_themes ) ) {
    		return $themes;
    	}

    	foreach ( $themes as $index => $theme ) {
    		$theme = basename( $theme );

    		if ( array_key_exists( $theme, $paused_themes ) ) {
    			unset( $themes[ $index ] );

    			// Store list of paused themes for displaying an admin notice.
    			$GLOBALS['_paused_themes'][ $theme ] = $paused_themes[ $theme ];
    		}
    	}

    	return $themes;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/load.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/load.php#L1137)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/load.php#L1137-L1156)

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

| Uses | Description | 
| [wp_paused_themes()](https://developer.wordpress.org/reference/functions/wp_paused_themes/)`wp-includes/error-protection.php` |

Get the instance for storing paused extensions.

  |

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

Retrieves an array of active and valid themes.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/wp_skip_paused_themes/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.2.0](https://developer.wordpress.org/reference/since/5.2.0/) | Introduced. |

## User Contributed Notes

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