PHP 클래스 WPDiscourse\PluginSupport\WooCommerceSupport

파일 보기 프로젝트 열기: discourse/wp-discourse

공개 메소드들

메소드 설명
__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