PHP Class WPDiscourse\PluginSupport\WooCommerceSupport

Mostra file Open project: discourse/wp-discourse

Public Methods

Method Description
__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.

Method Details

__construct() public method

WooCommerceSupport constructor.
public __construct ( )

comments_number() public method

Replaces the WooCommerce comments count with the Discourse comments count.
public comments_number ( integer $count ) : mixed
$count integer The comments count returned from WooCommerce.
return mixed

set_redirect() public method

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.
return mixed