• Resolved apedog

    (@apedog)


    Hi,
    I have a plugin that allows me to include plugins from multiple folders (based on the answer given here: https://wordpress.stackexchange.com/questions/43262/add-multiple-plugin-directories ). This works just fine for my needs.

    The only minor annoyance is that QM does not recognize these plugins as Plugin:plugin-name. All plugins included from the other directories are recognized by QM as ‘Core’.

    Is there a way I can tell QM to recognize these components as actual plugins and get their names?

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Thanks for the report.

    To be honest this is not something that I’m interested in adding support for in QM. There’s too much potential variation and adding filters to the required places in QM introduces a surprising amount of processing overhead.

    If you want to add support yourself you can take a look in the QM_Util::get_file_component() and QM_Util::get_file_dirs() methods, but remember your changes will be overwritten in subsequent updates to QM.

    John

    Thread Starter apedog

    (@apedog)

    Thanks.

    I didn’t mean this as a report. Apologies if that wasn’t clear.
    I was looking for a support forum with the intention of writing an extension plugin for my own specific installation. Thank you for the pointers, I’ll have a look.

    You wrote that there are no designated filters for my use case – does this mean that I cannot write a plugin to do what I want, and that I’ll have to hack QM itself to get the desired result? (I’m kinda loathe to do that – updates and all)

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    That’s fine, understood! ??

    There aren’t any filters in the correct places in QM that allow the component for a given function call or file name to be overridden.

    I’m hesitant to add them in the locations I mentioned above because of the frequency with which those methods get called. Unfortunately filters and actions aren’t free of cost and I wouldn’t want to add a performance overhead to QM to support such a narrow use case.

    I hope you understand!

    John

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Recognize plugins from other directories’ is closed to new replies.