hlashbrooke / WordPress-Plugin-Template

A robust code template for creating a standards-compliant WordPress plugin.
https://hughlashbrooke.com/
GNU General Public License v2.0
1.03k stars 332 forks source link

Duplicated update_post_meta in multi-instances of the boilerplate #102

Open rafasashi opened 1 year ago

rafasashi commented 1 year ago

If you use multiple instances of the boilerplate the following line is going to take all the fields created by all the instances and duplicate the update process.

https://github.com/hlashbrooke/WordPress-Plugin-Template/blob/27d728611ae47828dcf7fa46e0502bb9a94f6ce4/includes/lib/class-wordpress-plugin-template-admin-api.php#L282

Any idea on how to prevent this redundancy?