Class Trigger not found in function.php
-
Hi,
according to Bracketspace documentation (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
- The topic ‘Class Trigger not found in function.php’ is closed to new replies.