Title: Custom Trigger Class not found
Last modified: June 29, 2020

---

# Custom Trigger Class not found

 *  Resolved [rocheauxfees](https://wordpress.org/support/users/rocheauxfees/)
 * (@rocheauxfees)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-trigger-class-not-found/)
 * Hi there,
 * I wanted to add a new custom trigger. So I copied the sample code from your website(
   [https://docs.bracketspace.com/notification/developer/triggers/custom-trigger](https://docs.bracketspace.com/notification/developer/triggers/custom-trigger))
   but my wordpress systems says that the class I defined this way was not found.
 * What I am doing wrong? I am not that php expert 🙂
 * Thank you for your response 🙂
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-trigger-class-not-found%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [rocheauxfees](https://wordpress.org/support/users/rocheauxfees/)
 * (@rocheauxfees)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-trigger-class-not-found/#post-13067094)
 * I solved the problem by adding `do_action( 'notification/init' )` before the 
   code for defining the class and the call for the function to register the trigger.
   But now I get an error from the notification.php-File. I will open another ticket
   therefore.
 *  Anonymous User 14427753
 * (@anonymized-14427753)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-trigger-class-not-found/#post-13068364)
 * I am getting the same error and I try with adding `do_action( 'notification/init')`
   but it does not work.
 * I get an error like “Uncaught Error: Class ‘BracketSpace\Notification\Abstracts\
   Trigger’ not found”
 * please help me to solve this error
    -  This reply was modified 5 years, 11 months ago by Anonymous User 14427753.
 *  Anonymous User 14427753
 * (@anonymized-14427753)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-trigger-class-not-found/#post-13068498)
 * This issue answer [https://github.com/BracketSpace/Notification/issues/260](https://github.com/BracketSpace/Notification/issues/260)
 *  Plugin Support [annaszalkiewicz](https://wordpress.org/support/users/annaszalkiewicz/)
 * (@annaszalkiewicz)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-trigger-class-not-found/#post-13076389)
 * Hello,
 * It is important to register the trigger in the action. See [here](https://docs.bracketspace.com/notification/developer/triggers/custom-trigger).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Custom Trigger Class not found’ 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/)

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)
 * [triggers](https://wordpress.org/support/topic-tag/triggers/)

 * 4 replies
 * 3 participants
 * Last reply from: [annaszalkiewicz](https://wordpress.org/support/users/annaszalkiewicz/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/custom-trigger-class-not-found/#post-13076389)
 * Status: resolved