The Meta Box code snippet library is a community-maintained repository and so contributions are always welcome.
To submit a code library for inclusion in the library, please fork the repository and then submit a pull request.
Guidelines for submission:
- Each snippet should be placed in it's own file.
- Each file should be named appropriately based on the purpose of the snippet.
- Files should be placed in the appropriate category (folder). If no category exists, you may create one with your pull request.
- All functions and classes should be prefixed with your own unique prefix, preferrably one that contains your initials followed by
_mb_
. For example:rw_mb_{function name here}
. - (Optional) Add WordPress plugin headers to allow others to use your snippet as a plugin.