Using your plugin code for reference
-
Hi there, so there is no any issues about the plugin. It is a nice plugin. I was trying to check the code for my study purpose. So, It may be funny question but I am really confused about it. My question is there is this file inside your plugin: public/class-ays-pb-public.php. In this file in line number 179 there is function called ays_generate_popup. So from where this function is getting that $attr values? I know that this is callback from add_shortcode which have three params by default: attributes array, content and shortcode tag. But from where that $attr array is getting all the ids of the popups posts?
I var_dump the atts array and it outputs: array(3) { [“id”]=> string(1) “1” [“w”]=> string(3) “700” [“h”]=> string(3) “400” }. From where these are passed? I am really confused.
I think I described as well as I can. If it is possible to answer my question, I will be grateful to you. Thank you in advance.The page I need help with: [log in to see the link]
- The topic ‘Using your plugin code for reference’ is closed to new replies.