Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
476 views
in Plugins by

currently function q_list_item has only one variable but i want to add one more varialbe through layer in plugin

I just change the function defination like this 

q_list_item($q_item ,$var )

{

...

..

}

It works perfectly but if i disable plugin it creates error.

Can anybody pls help me out!!!

Q2A version: 1.5

1 Answer

0 votes
by

I'm not sure why you're having the problem you describe, but an easier way to do it is just add a new key/value to the $q_item array. Make sure you name it using your plugin name as a prefix, so that it won't clash with anything else in future.

...