How to save dynamic values?
-
Hi,
Assuming I have a plugin which allows the user to save 3 text values. After saving he will get a shortcode which echos all these 3 values.
It is easy to save these values in the database, cause I can name them however I want. But what if the user wants to create another shortcode with 3 other values? If the new values get the same name they probably get overwritten. So how do I identify the values of new categories dynamically? And how do I create the new shortcode which includes the right values?I guess I have to use an array. But I don’t really know how to practice my example above.
The topic ‘How to save dynamic values?’ is closed to new replies.