WP_CLI\Utils
is_theme_skipped()
No Hooks.
Return
null
. Nothing (null).
Usage
is_theme_skipped( $path );
- $path (required)
- -
is_theme_skipped() is theme skipped code WP-CLI 2.8.0-alpha
function is_theme_skipped( $path ) { $name = get_theme_name( $path ); $skipped_themes = WP_CLI::get_runner()->config['skip-themes']; if ( true === $skipped_themes ) { return true; } if ( ! is_array( $skipped_themes ) ) { $skipped_themes = explode( ',', $skipped_themes ); } return in_array( $name, array_filter( $skipped_themes ), true ); }