WordPress at a glance
function is not described

wp_skip_paused_plugins() WP 5.2.0

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

No Hooks.

Return

String[]. Filtered array of plugins, without any paused plugins.

Usage

wp_skip_paused_plugins( $plugins );
$plugins(array) (required)
Array of absolute plugin main file paths.

Changelog

Since 5.2.0 Introduced.

Code of wp_skip_paused_plugins() WP 5.7

<?php
function wp_skip_paused_plugins( array $plugins ) {
	$paused_plugins = wp_paused_plugins()->get_all();

	if ( empty( $paused_plugins ) ) {
		return $plugins;
	}

	foreach ( $plugins as $index => $plugin ) {
		list( $plugin ) = explode( '/', plugin_basename( $plugin ) );

		if ( array_key_exists( $plugin, $paused_plugins ) ) {
			unset( $plugins[ $index ] );

			// Store list of paused plugins for displaying an admin notice.
			$GLOBALS['_paused_plugins'][ $plugin ] = $paused_plugins[ $plugin ];
		}
	}

	return $plugins;
}