Fix return type documentation.
This commit is contained in:
parent
680869b718
commit
21dd50442d
|
@ -284,7 +284,7 @@ class WC_Cart extends WC_Legacy_Cart {
|
|||
*
|
||||
* @since 3.2.0
|
||||
* @param string $context If the context is view, the value will be formatted for display. This keeps it compatible with pre-3.2 versions.
|
||||
* @return float
|
||||
* @return float|string
|
||||
*/
|
||||
public function get_total( $context = 'view' ) {
|
||||
$total = apply_filters( 'woocommerce_cart_' . __FUNCTION__, $this->get_totals_var( 'total' ) );
|
||||
|
|
Loading…
Reference in New Issue