WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Admin_Addons::get_featured() public WC 1.0

Get featured for the addons screen

Это метод класса: WC_Admin_Addons{}

Хуков нет.

Возвращает

Массив. of objects

Использование

$result = WC_Admin_Addons::get_featured();

Код WC Admin Addons::get featured: woocommerce/includes/admin/class-wc-admin-addons.php WC 4.5.2

<?php
public static function get_featured() {
	$featured = get_transient( 'wc_addons_featured' );
	if ( false === $featured ) {
		$raw_featured = wp_safe_remote_get( 'https://d3t0oesq8995hv.cloudfront.net/add-ons/featured-v2.json', array( 'user-agent' => 'WooCommerce Addons Page' ) );
		if ( ! is_wp_error( $raw_featured ) ) {
			$featured = json_decode( wp_remote_retrieve_body( $raw_featured ) );
			if ( $featured ) {
				set_transient( 'wc_addons_featured', $featured, WEEK_IN_SECONDS );
			}
		}
	}

	if ( is_object( $featured ) ) {
		self::output_featured_sections( $featured->sections );
		return $featured;
	}
}