PHP Класс WPDiscourse\PluginSupport\WooCommerceSupport

Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( ) WooCommerceSupport constructor.
comments_number ( integer $count ) : mixed Replaces the WooCommerce comments count with the Discourse comments count.
set_redirect ( string $redirect ) : mixed Sets the login redirect so that it can include the query parameters required for single sign on with Discourse.

Описание методов

__construct() публичный Метод

WooCommerceSupport constructor.
public __construct ( )

comments_number() публичный Метод

Replaces the WooCommerce comments count with the Discourse comments count.
public comments_number ( integer $count ) : mixed
$count integer The comments count returned from WooCommerce.
Результат mixed

set_redirect() публичный Метод

Sets the login redirect so that it can include the query parameters required for single sign on with Discourse.
public set_redirect ( string $redirect ) : mixed
$redirect string The redirect URL supplied by WooCommerce.
Результат mixed