• Hello,

    I have 4 plugins I use. These plugins were purchased from the WordPress store (Calculated Fields, WP Real Estate Pro, Woo Commerce etc.) I want to be able to display data from the 4 plugins in 1 WordPress page. Is there a best practice for this?

    I’m thinking I should leave the PHP of the original plugins alone, so I can maintain updates, and then create new PHP which combines the various plugins but I don’t think it would be maintainable (something would break).

    Is there any best practices, recommendations, or documentation anyone can point me to?

    Anything will help!

    • This topic was modified 4 years, 10 months ago by Jan Dembowski.
    • This topic was modified 4 years, 10 months ago by redwafer.
Viewing 1 replies (of 1 total)
  • I will add points that I can think of, and possibly others will chime in with their input.

    You are on right track with not modifying the original files at all.

    Whatever you want to happen on a particular page, you can call functions provided by 3rd party plugins and expect them to function and ofcourse they can break as plugin doesn’t maintain backward compatibility (such is the nature of software), but that doesn’t happen because of how you used it.

    Keep in mind to use top level functions as much as possible and use action & filters to plug in your logic. Almost everyone is mindful of changing functions that others might be using directly, its more of the internal functions that break, but as long as you are utilizing actions/filters, which they will continue to keep in their code (hopefully), there is a lot less chance for things to break.

    That being said, there could be more I could comment on, if I knew more about your specific usecase, but this should suffice for you to begin. Good luck!

Viewing 1 replies (of 1 total)

The topic ‘Best Practice for Communicating Across Plugins’ is closed to new replies.