WordPress at a glance
function is not described


Plugins_Handler::get_cached_plugins() public WC 1.0

Gets all of the cached plugins if there are any.

{} It's a method of the class: Plugins_Handler{}

No Hooks.


String[]. Nothing.


$Plugins_Handler = new Plugins_Handler();

Code of Plugins_Handler::get_cached_plugins() WC 5.3.0

public function get_cached_plugins() {
	$cached = get_transient( self::TRANSIENT_KEY );
	if ( ! is_array( $cached ) || empty( $cached ) ) {
		return array();

	// We need to expand the tokens to an absolute path for this webserver.
	return array_map( array( $this->path_processor, 'untokenize_path_constants' ), $cached );