Site logo

[Support request] Custom hook forward slash

Home Forums Support [Support request] Custom hook forward slash

Home Forums Support Custom hook forward slash

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2567013
    Jason

    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

    #2567196
    David
    Staff
    Customer Support

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.