|
@@ 229-240 (lines=12) @@
|
| 226 |
|
|
| 227 |
|
} |
| 228 |
|
|
| 229 |
|
if ( ! function_exists( 'is_lost_password_page' ) ) { |
| 230 |
|
|
| 231 |
|
/** |
| 232 |
|
* is_lost_password_page - Returns true when viewing the lost password page. |
| 233 |
|
* @return bool |
| 234 |
|
*/ |
| 235 |
|
function is_lost_password_page() { |
| 236 |
|
global $wp; |
| 237 |
|
|
| 238 |
|
return ( is_page( wc_get_page_id( 'myaccount' ) ) && isset( $wp->query_vars['lost-password'] ) ); |
| 239 |
|
} |
| 240 |
|
|
| 241 |
|
} |
| 242 |
|
|
| 243 |
|
if ( ! function_exists( 'is_ajax' ) ) { |
|
@@ 170-181 (lines=12) @@
|
| 167 |
|
|
| 168 |
|
} |
| 169 |
|
|
| 170 |
|
if ( ! function_exists( 'is_view_order_page' ) ) { |
| 171 |
|
|
| 172 |
|
/** |
| 173 |
|
* is_view_order_page - Returns true when on the view order page. |
| 174 |
|
* @return bool |
| 175 |
|
*/ |
| 176 |
|
function is_view_order_page() { |
| 177 |
|
global $wp; |
| 178 |
|
|
| 179 |
|
return ( is_page( wc_get_page_id( 'myaccount' ) ) && isset( $wp->query_vars['view-order'] ) ); |
| 180 |
|
} |
| 181 |
|
|
| 182 |
|
} |
| 183 |
|
|
| 184 |
|
if ( ! function_exists( 'is_edit_account_page' ) ) { |
|
@@ 184-198 (lines=15) @@
|
| 181 |
|
|
| 182 |
|
} |
| 183 |
|
|
| 184 |
|
if ( ! function_exists( 'is_edit_account_page' ) ) { |
| 185 |
|
|
| 186 |
|
/** |
| 187 |
|
* Check for edit account page. |
| 188 |
|
* Returns true when viewing the edit account page. |
| 189 |
|
* |
| 190 |
|
* @since 2.5.1 |
| 191 |
|
* @return bool |
| 192 |
|
*/ |
| 193 |
|
function is_edit_account_page() { |
| 194 |
|
global $wp; |
| 195 |
|
|
| 196 |
|
return ( is_page( wc_get_page_id( 'myaccount' ) ) && isset( $wp->query_vars['edit-account'] ) ); |
| 197 |
|
} |
| 198 |
|
|
| 199 |
|
} |
| 200 |
|
|
| 201 |
|
if ( ! function_exists( 'is_order_received_page' ) ) { |
|
@@ 201-212 (lines=12) @@
|
| 198 |
|
|
| 199 |
|
} |
| 200 |
|
|
| 201 |
|
if ( ! function_exists( 'is_order_received_page' ) ) { |
| 202 |
|
|
| 203 |
|
/** |
| 204 |
|
* is_order_received_page - Returns true when viewing the order received page. |
| 205 |
|
* @return bool |
| 206 |
|
*/ |
| 207 |
|
function is_order_received_page() { |
| 208 |
|
global $wp; |
| 209 |
|
|
| 210 |
|
return ( is_page( wc_get_page_id( 'checkout' ) ) && isset( $wp->query_vars['order-received'] ) ); |
| 211 |
|
} |
| 212 |
|
|
| 213 |
|
} |
| 214 |
|
|
| 215 |
|
if ( ! function_exists( 'is_add_payment_method_page' ) ) { |
|
@@ 215-226 (lines=12) @@
|
| 212 |
|
|
| 213 |
|
} |
| 214 |
|
|
| 215 |
|
if ( ! function_exists( 'is_add_payment_method_page' ) ) { |
| 216 |
|
|
| 217 |
|
/** |
| 218 |
|
* is_add_payment_method_page - Returns true when viewing the add payment method page. |
| 219 |
|
* @return bool |
| 220 |
|
*/ |
| 221 |
|
function is_add_payment_method_page() { |
| 222 |
|
global $wp; |
| 223 |
|
|
| 224 |
|
return ( is_page( wc_get_page_id( 'myaccount' ) ) && isset( $wp->query_vars['add-payment-method'] ) ); |
| 225 |
|
} |
| 226 |
|
|
| 227 |
|
} |
| 228 |
|
|
| 229 |
|
if ( ! function_exists( 'is_lost_password_page' ) ) { |