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.
Return Return
(bool)
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.31.0 | Introduced. |