I am working on a custom plugin to add some extra fields in each forms of user and site. Therefore, I need to add few custom fields in the both new/edit site and user forms. Just to know if there is a way to add custom fields when I create or edit the site and users through Network admin panel without touching the WP core.
1 Answer
Of course you should never touch WP core. If your custom fields within your custom plugin - just add it :) If you are talking about custom fields in native WP forms you should read about WP hooks mechanism.
-
1Can you provide specific hooks or even examples on how this can be accomplished? Just referring someone to the documentation isn't as helpful. Commented Aug 20, 2020 at 20:38
-
1Yes, I need to know if there is any specific hooks for perform these tasks.. Commented Aug 20, 2020 at 21:25