Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wpmetabox/library
Meta Box Code Snippet Library
https://github.com/wpmetabox/library
custom-field custom-fields meta-box meta-boxes php snippet wordpress wordpress-plugin wordpress-plugins
Last synced: about 7 hours ago
JSON representation
Meta Box Code Snippet Library
- Host: GitHub
- URL: https://github.com/wpmetabox/library
- Owner: wpmetabox
- Created: 2017-10-25T06:36:51.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-03-18T09:50:38.000Z (over 2 years ago)
- Last Synced: 2024-03-25T22:04:32.020Z (8 months ago)
- Topics: custom-field, custom-fields, meta-box, meta-boxes, php, snippet, wordpress, wordpress-plugin, wordpress-plugins
- Language: PHP
- Homepage: https://metabox.io
- Size: 71.3 KB
- Stars: 58
- Watchers: 11
- Forks: 27
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# Meta Box Code Snippet Library
This is a community-maintained repository of code snippets that help modify the default behavior of [Meta Box](https://metabox.io).
Snippets are organized into categories (folders) and each snippet is placed in its own file with a name that describes what it does.
## Using Snippets
Most files in this library are set up to be used within your WordPress theme or plugin:
1. Click on the filename of the snippet you'd like to use.
1. Click the "Raw" button (next to "Blame" and "History") at the top right.
1. Save the page from your browser to your plugin or theme folder. Be sure to save it as a .php file.
1. Open your theme's `functions.php` file (or your plugin main `.php` file) and include the new file. Or you can just copy and paste the code into your child theme's `functions.php` or place inside a custom functionality plugin.## Submitting Your Snippet
We welcome and encourage everyone to submit their code snippets. If you would like to submit your snippet, please [fork](https://github.com/wpmetabox/library/fork) the repository and then create a [pull request](https://github.com/wpmetabox/library/compare/).
Please refer to the [Contributing guidelines](https://github.com/wpmetabox/library/blob/master/CONTRIBUTING.md) before submitting your pull request.
## Proposing a Snippet
If there is a snippet you are unable to find and would like to propose get written, please open an [issue](https://github.com/wpmetabox/library/issues) and describe your need.
## Notes
This is not a tutorial archive. Please see the [plugin documentation](https://docs.metabox.io) if you're looking for instructions on how to implement these snippets (and others).
These snippets come with no guarantees. Due to the constant evolution of the Meta Box codebase, it is possible that the behavior of these snippets may change overtime. Find something broken? [Let us know](https://github.com/wpmetabox/library/issues)!