Title: Class Trigger not found in function.php
Last modified: May 13, 2020

---

# Class Trigger not found in function.php

 *  [enzo2018](https://wordpress.org/support/users/enzo2018/)
 * (@enzo2018)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/class-trigger-not-found-in-function-php/)
 * Hi,
    according to Bracketspace documentation ([https://docs.bracketspace.com/notification/developer/triggers/custom-trigger](https://docs.bracketspace.com/notification/developer/triggers/custom-trigger))
   I’m tryng to create my own custom trigger. I pasted the sample code in my them
   child function.php but get the following error:
 * `Uncaught Error: Class 'BracketSpace\Notification\Abstracts\Trigger' not found
   in SERVER_FOLDER/wp-content/themes/hitmag-pphc/functions.php:777 Stack trace:#
   0 SERVER_FOLDER/wp-settings.php(508): include() #1 SERVER_FOLDER/wp-config.php(
   90): require_once('/var/www/vhosts...') #2 SERVER_FOLDER/wp-load.php(37): require_once('/
   var/www/vhosts...') #3 SERVER_FOLDER/wp-admin/admin.php(34): require_once('/var/
   www/vhosts...') #4 SERVER_FOLDER/wp-admin/edit.php(10): require_once('/var/www/
   vhosts...') #5 {main} thrown in SERVER_FOLDER/wp-content/themes/hitmag-pphc/functions.
   php on line 777`
 * Where am I doing wrong? I would create a button in my taxonomy editing page that
   would send a mail after click. Any suggestion?
 * Thank you,
    Greetings, Enzo
    -  This topic was modified 5 years, 10 months ago by [enzo2018](https://wordpress.org/support/users/enzo2018/).

The topic ‘Class Trigger not found in function.php’ is closed to new replies.

 * ![](https://ps.w.org/notification/assets/icon-256x256.gif?rev=3476901)
 * [Notification - Custom Notifications and Alerts for WordPress](https://wordpress.org/plugins/notification/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/notification/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/notification/)
 * [Active Topics](https://wordpress.org/support/plugin/notification/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/notification/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/notification/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [enzo2018](https://wordpress.org/support/users/enzo2018/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/class-trigger-not-found-in-function-php/)
 * Status: not resolved