woocommerce_account_endpoint_page_not_found
Usage
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
- -
Where the hook is called
woocommerce_account_endpoint_page_not_found
woocommerce/includes/wc-template-functions.php 62
if ( is_wc_endpoint_url() && ! is_account_page() && ! is_checkout() && apply_filters( 'woocommerce_account_endpoint_page_not_found', true ) ) {