• Resolved always1learning

    (@always1learning)


    Hello,
    I am building on a plugin which will enhance Sensei.
    Currently I am trying to determine if a filter (hook) exists so I can modify a section of a page. But the list of hooks is daunting. Is there a plugin that would highlight an area and state which filter could allow me to modify that section?

    I have installed:
    – Debug Bar
    – Query Monitor
    But they are not providing this insight.

    Thanks for any help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Animesh Gaurav (a11n)

    (@bizanimesh)

    Hey @always1learning – we have actions / filters listed and what they do which you can check here.

    And here is our documentation for developers in case you want to check.

    We also have a place for discussion and sharing about building (and selling) with Sensei LMS which you can join here.

    Thread Starter always1learning

    (@always1learning)

    Thank you for the links, Animesh. I had already started searching through them, but I was hoping a tool might exist to allow me to pinpoint which hook I need to use. Similar to viewing the code of an HTML page to know which CSS class you need to modify to create a change in a particular section.

    I’ll join the discussion forum and see how it goes.

    Thread Starter always1learning

    (@always1learning)

    I am following the P2 link you included at the bottom of your post:
    https://educatorsp2.wordpress.com/

    But I don’t see how to post a new message. I chose “My Posts” and it said “Ready to publish your first post? Simply use the editor above.” But there is nothing above that line of text.

    Do I need to request authorization to post there? It’s a forum system I’m unfamiliar with. Thanks.

    Daniel

    (@ihenetudan)

    Hi @always1learning,

    I was hoping a tool might exist to allow me to pinpoint which hook I need to use

    Not to my knowledge. What I usually do is search the relevant GitHub repository (in this case, Sensei LMS) for code that’s likely responsible for the functionality I’m trying to modify and then I look to see if there are any calls to apply_filters (which attaches callback functions to the filter hook defined there that filter the output there) and do_action (which attaches callback functions to the action hooks define there that do something custom). I hope that helps.

    But I don’t see how to post a new message. I chose “My Posts” and it said “Ready to publish your first post? Simply use the editor above.” But there is nothing above that line of text.

    You should be able to, at the very least, leave comments. If you’d like to share some ideas or concerns, I’d recommend leaving a reply on this recent post: https://educatorsp2.wordpress.com/2023/03/06/tell-us-about-your-sensei-experience/

    Thread Starter always1learning

    (@always1learning)

    Thanks for the pointers, Daniel, I’ll give that a try.

    Plugin Support Animesh Gaurav (a11n)

    (@bizanimesh)

    Hey @always1learning – that sounds good!

    I’m marking this topic as resolved for now. But If you have any further questions or need some more help, you’re welcome to reply here and mark this topic as “not resolved” from the left sidebar of this topic (example) or open another thread.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Plugin development, a tool to help determine which hook?’ is closed to new replies.