• Resolved Bowo

    (@qriouslad)


    If there’s one feature I’d like to see, is automatic linking of the method/function location to the plugin/theme editor.

    For example, when I’m inspecting what functions and methods are hooked to the ‘admin_menu’ hook, I see the System Dahsboard plugin has System_Dashboard_Admin::sd_register_submenu at /home/user/webapps/wpplugins-build/wp-content/plugins/system-dashboard/admin/class-system-dashboard-admin.php:11106.

    It would be great if the file path can be linked to the plugin editor (WP core’s). Perfection is if there is a way that opening the file editor would automatically scroll down the CodeMirror editor to the exact line (11106). This way, it’s very easy to actually find and see the actual code being executed.

    p.s. my plugin, Debug Log Manager, has a way to perform this auto-linking Iwithout the auto scroll down though). Perhaps there’s some code there that you can reuse?

    Thank you for considering this.

    • This topic was modified 4 months, 1 week ago by Bowo.
    • This topic was modified 4 months, 1 week ago by Bowo.
    • This topic was modified 4 months, 1 week ago by Bowo.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author SmilingSyntax

    (@smilingsyntax)

    That looks like a wonderful feature @qriouslad. I will consider adding it. I will also consider Debug Log Manager and use it as a reference point for this feature. Thank you for this wonderful suggestion. this will be on my priority list.

    Plugin Author Manjul

    (@codemadan)

    @qriouslad
    The requested linking to the plugin/theme editor has now been added. Now you can jump from the traced file path straight into the inbuilt WordPress editor or your favourite text editor/IDE in your local setup and inspect the code more easily. If you notice any rough edges or have suggestions to refine, please let me know so it can be polished further.

    Thread Starter Bowo

    (@qriouslad)

    @smilingsyntax @codemadan awesome!!! I’ve just updated and tested the WordPress editor link and it works great with line highlighting as well! Thank you!!

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

You must be logged in to reply to this topic.