I'm working on creating a shortcode which is meant to change the css and js dynamically for that shortcode based on the situation. Now the problem is that I not getting a clue about how to use
add_action() inside a
add_shortcode(). Let me give you an example snippet code so that you guys can better understand me:
Now obviously it is not working, so I was hoping if any of you can guide me how to the similar thing in the proper way.
If you can, please help instead of negative voting the question.