Output WooCommerce Endpoint Content

add_shortcode( 'wc_endpoint_content', function {
    // begin output buffering
    ob_start();
    do_action('woocommerce_account_endpoint'); // this is the end point name
    // end output buffering, grab the buffer contents, and empty the buffer
    return ob_get_clean();
});