LLMS_PlayNice::wc_is_account_page( bool $is_acct_page )

Allow our dashboard endpoints sharing a query var with WC to function


Description Description

Lie to WC and tell it we’re on a WC account page when accessing endpoints which share a query var with WC. See https://github.com/gocodebox/lifterlms/issues/849.


Parameters Parameters

$is_acct_page

(bool) (Required) False from woocommerce_is_account_page filter.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/class.llms.playnice.php

	public function wc_is_account_page( $is_acct_page ) {

		if ( ! $is_acct_page && is_llms_account_page() && is_wc_endpoint_url() ) {
			$is_acct_page = true;
		}

		return $is_acct_page;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.31.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.