Describe the bug
If PMPro is deactivated and I activate the Gift Levels Add On, there is a fatal error.
To Reproduce
Steps to reproduce the behavior:
Go to Plugins
Deactivate PMPro
Activate the Gift Levels Add On
Visit homepage
See error
Fatal error: Uncaught Error: Call to undefined function pmpro_is_checkout() in /public_html/wp-content/plugins/pmpro-gift-levels/includes/checkout.php:51
7 /home/www/ in /public_html/wp-content/plugins/pmpro-gift-levels/includes/checkout.php on line 51
**Expected behavior**
They should not be an error.
**Isolating the problem:**
- [x] I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro and the Gift Levels Add On is active.
- [x] This bug happens with a default WordPress theme active, or [Memberlite](https://wordpress.org/themes/memberlite/).
- [x] I can reproduce this bug consistently using the steps above.
**WordPress Environment**
<details>
Paid Memberships Pro 2.12.2, WordPress 6.3.1, PHP 8.0.29```
Describe the bug If PMPro is deactivated and I activate the Gift Levels Add On, there is a fatal error.
To Reproduce Steps to reproduce the behavior:
Stack trace:
0 /public_html/wp-includes/class-wp-hook.php(310): pmprogl_enqueue_checkout_script('')
1 //public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
2 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
3 /public_html/wp-includes/script-loader.php(2225): do_action('wp_enqueue_scri...')
4 /public_html/wp-includes/class-wp-hook.php(310): wp_enqueue_scripts('')
5 /public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
6 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
7 /home/www/ in /public_html/wp-content/plugins/pmpro-gift-levels/includes/checkout.php on line 51
Paid Memberships Pro 2.12.2, WordPress 6.3.1, PHP 8.0.29```