Title: is_theme_paused
Published: May 7, 2019
Last modified: May 20, 2026

---

# is_theme_paused( string $theme ): bool

## In this article

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

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

Determines whether a theme is technically active but was paused while loading.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/is_theme_paused/?output_format=md#description)󠁿

For more information on this and similar theme functions, check out the [ Conditional Tags](https://developer.wordpress.org/themes/basics/conditional-tags/)
article in the Theme Developer Handbook.

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

 `$theme`stringrequired

Path to the theme directory relative to the themes directory.

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

 bool True, if in the list of paused themes. False, not in the list.

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

    ```php
    function is_theme_paused( $theme ) {
    	if ( ! isset( $GLOBALS['_paused_themes'] ) ) {
    		return false;
    	}

    	if ( get_stylesheet() !== $theme && get_template() !== $theme ) {
    		return false;
    	}

    	return array_key_exists( $theme, $GLOBALS['_paused_themes'] );
    }
    ```

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

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

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

Retrieves name of the active theme.

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

Retrieves name of the current stylesheet.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/is_theme_paused/?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%2Fis_theme_paused%2F)
before being able to contribute a note or feedback.