WC_Admin_Addons::render_featured()publicWC 1.0

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$WC_Admin_Addons = new WC_Admin_Addons();
$WC_Admin_Addons->;

Код WC_Admin_Addons::render_featured() WC 9.3.3

				return new WP_Error( 'wc-addons-connection-error', $message );
			}

			$featured = json_decode( wp_remote_retrieve_body( $raw_featured ) );
			if ( empty( $featured ) || ! is_array( $featured ) ) {
				do_action( 'woocommerce_page_wc-addons_connection_error', 'Empty or malformed response' );
				$message = __( 'Our request to the featured API got a malformed response.', 'woocommerce' );