> For the complete documentation index, see [llms.txt](https://docs.yaycommerce.com/yayextra/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yaycommerce.com/yayextra/developer-zone.md).

# Developer zone

1. **Hook for before\_calculate\_totals function:**&#x20;

* yaye\_cart\_line\_total
* yaye\_cart\_line\_regular\_total

```
$cost_total         = apply_filters('yaye_cart_line_total', Utils::get_price_from_yaycurrency( $cost_total ), $cart_value);
				$cost_regular_total = apply_filters('yaye_cart_line_regular_total', Utils::get_price_from_yaycurrency( $cost_regular_total ), $cart_value);

				$cart_value['data']->set_price( $cost_total );
				$cart_value['data']->set_regular_price( $cost_regular_total );
```

2. **Hook for total\_price\_text and subtotal\_text:**

```
add_filter( 'yaye_total_price_text', function( $text ) {
	return esc_html__( 'Custom Total Price text......', 'yayextra' );
});
add_filter( 'yaye_subtotal_text', function( $text ) {
	return esc_html__( 'Custom Subtotal text......', 'yayextra' );
});
```
