woocommerce_account_endpoint_page_not_found
Использование
add_filter( 'woocommerce_account_endpoint_page_not_found', 'wp_kama_woocommerce_account_endpoint_page_not_found_filter' ); /** * Function for `woocommerce_account_endpoint_page_not_found` filter-hook. * * @param $true * * @return */ function wp_kama_woocommerce_account_endpoint_page_not_found_filter( $true ){ // filter... return $true; }
- $true
- -
Где вызывается хук
woocommerce_account_endpoint_page_not_found
woocommerce/includes/wc-template-functions.php 50
if ( is_wc_endpoint_url() && ! is_account_page() && ! is_checkout() && apply_filters( 'woocommerce_account_endpoint_page_not_found', true ) ) {