# quotes\_dlx\_before\_modal\_scripts

In the preview modal, you can perform a custom action before the modal scripts are output.

{% hint style="info" %}
Location: `php/Ajax.php`
{% endhint %}

{% code overflow="wrap" %}

```php
/**
 * Action to run before printing modal scripts/styles.
 *
 * @since 1.0.0
 *
 * @param string $template              The template name/slug.
 * @param string $primary_font_family   The primary font family slug.
 * @param string $secondary_font_family The secondary font family slug.
 */
do_action( 'quotes_dlx_before_modal_scripts', $template, $primary_font_family, $secondary_font_family );
```

{% endcode %}
