Skip to content
Meta Box Code Snippet Library
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
composer Update composer.json Jun 4, 2018
conditional-display Change text domain Nov 13, 2017
extensions Create conditional-tabs.php Feb 14, 2019
features Create select-advanced-ajax-sources.php Sep 11, 2018
fields Updated demo for text and checkbox list Feb 22, 2019
general Removed thickbox_image field. WordPress doesn't support it anymore. U… Mar 3, 2018
integration Rename 3rd-party-form-integration/contact-form-7.php to integration/c… Sep 5, 2018
CONTRIBUTING.md Add guides and organize in folder Oct 25, 2017
README.md

README.md

Meta Box Code Snippet Library

This is a community-maintained repository of code snippets that help modify the default behavior of Meta Box.

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.
  2. Click the "Raw" button (next to "Blame" and "History") at the top right.
  3. Save the page from your browser to your plugin or theme folder. Be sure to save it as a .php file.
  4. 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 the repository and then create a pull request.

Please refer to the Contributing guidelines 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 and describe your need.

Notes

This is not a tutorial archive. Please see the plugin documentation 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!

You can’t perform that action at this time.