Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Passing a value from one plugin to another on the same page

Discussion in 'Misc WordPress Requests' started by bcworkz, Jan 22, 2018.

  1. bcworkz

    Guest

    Reply To: Passing a value from one plugin to another on the same page, by bcworkz

    You should avoid client side coding (JavaScript/jQuery) if at all possible. Ideally get everything in order server side before outputting anything. The output of one plugin is almost surely incompatible with the other, so you will need to have a data translation routine of some sort. It’s better to work with raw data instead of HTML output, but doing so without hacking plugin code may not be possible. Still, it’s worth investigating. Maybe there’s a filter you can hook into that gives you access to raw data.

    If nothing else, you can use the PHP output buffer to capture plugin output. From the buffer you can extract the desired data. How you then pass that to the other plugin depends on the plugin. It may have PHP functions you could call, passing the data you’ve extracted and rearranged into a form compatible with the function being called.

    You could even capture returned or output data from the second plugin and again reformat it for output to the browser in any way you desire.

    Reply To: Passing a value from one plugin to another on the same page
     
    #1

Share This Page

Monarch Social Sharing Plugin