wpsc_get_plugin_list()
Хуков нет.
Возвращает
null. Ничего (null).
Использование
wpsc_get_plugin_list();
Код wpsc_get_plugin_list() wpsc get plugin list WPSCache 3.1.0
function wpsc_get_plugin_list() {
$list = do_cacheaction( 'wpsc_filter_list' );
foreach( $list as $t => $details ) {
$key = "cache_" . $details[ 'key' ];
if ( isset( $GLOBALS[ $key ] ) && $GLOBALS[ $key ] == 1 ) {
$list[ $t ][ 'enabled' ] = true;
} else {
$list[ $t ][ 'enabled' ] = false;
}
$list[ $t ]['desc'] = strip_tags( $list[ $t ]['desc'] ?? '' ); // phpcs:ignore WordPress.WP.AlternativeFunctions.strip_tags_strip_tags
$list[ $t ]['title'] = strip_tags( $list[ $t ]['title'] ?? '' ); // phpcs:ignore WordPress.WP.AlternativeFunctions.strip_tags_strip_tags
}
return $list;
}