Archived topic
Custom hook forward slash
1 reply · Started by Jason on March 14, 2023
I am trying to implement a block element at a custom hook “tutor_course/single/enrolled/after/sidebar“ for tutorlms plugin, however each time a I save it the forward slash is removed and it doesn’t work.
What am I missing to resolve this?
Thanks
Hi there,
i believe that is baked in sanitization on that field. Ill raise an issue to see if we can modify that.
you could do use a PHP Snippet to hook in your own custom hook eg.
add_action('tutor_course/single/enrolled/after/sidebar',function(){
do_action('your_custom_hook');
},10);
So thats your own hook inside their hook.