• Stars
    star
    223
  • Rank 177,900 (Top 4 %)
  • Language
    JavaScript
  • License
    GNU General Publi...
  • Created about 13 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A class for creating custom meta boxes for WordPress
My Wordpress Meta box Class
=======================
Contributors: bainternet
Requires at least: 3.1
Tested up to: 3.7.1

Description
-----------
The Meta Box Class is used by including it in your plugin files and using its methods to 
create custom meta boxes for custom post types. It is meant to be very simple and 
straightforward. For name spacing purposes, All Types metabox ( meaning you can do anything with it )
is used. 

This class is derived from Meta Box script by Rilwis<[email protected]> version 3.2. which later was forked 
by Cory Crowley (email: [email protected]) The purpose of this class is not to rewrite the script but to 
modify and change small things and adding a few field types that i needed to my personal preference. 
The original author did a great job in writing this class, so all props goes to him.

Usage
--------
Take a look at the `class-usage-demo.php` file which can also be tested as a WordPress Plugin. 
Other options are available for each field which can be see in the 'my-meta-box-class.php' file, 


Known Issues and Limitations
-------------
Reapater field can't handle Posts and Taxonomy for now (and maybe even others).


Changelog
---------
= 3.1.1 =

* Fixed  #94.
* Fixed #92.
* Fixed #93. added an option to show an empty select option to posts field using `emptylabel` in the field config array.
* Fixed #88.

= 3.1.0 = 

* All uploads hadled by wordpress and not by the class
* Removed media upload functions
* Replaced Image field to new media uploader
* Replaced file field to new media uploader and added a type limiter.
* Dropped supprot for farbtastic. and probbably wp < 3.5
* Repeater field label is a counter if first field is an image or file field.
* Fixed typo in css class name for post select field.
* Deprecated  save_field_file_repeater method.
* Fixed posts filed query args
* Added WYSIWYG editor settings option.
* Removed all refreance object calls (for php 5.4 prep).
* Removed support for hosted icons.
* Refreshed repeater block icons.
* Cleaned repeater block.
* Repeater block sortable now has an icon for sorting.
* Added Repeater block sortable drop place holder.
* Updated plugin version 
* Added file field width type limitation.

= 3.0.6 = 
Fixed issue #74.

= 3.0.5 = 
Fixed issue #64

= 3.0.4 =  
Fixed #52

= 3.0.3 =  
Added html5 Number Field

= 3.0.2 =
Fixed #48.
Cleaned up Javascript file.
Added Swedish translations thanks to #lolitaloco :)

= 3.0.1 = 
Better add_meta_box logic

= 3.0.0 =
fixed issues #45 #42

= 2.9.9 =
Cleaned up some comments in the code.
Added a conditional fields block #37 ,as can be seen in demo plugin.


= 2.9.8 =
Fixed field groupping #32
Added Select2 #31
Added WordPress 3.5 color picker support.
better field type checking algo.

= 2.9.7 =
Added class attribute to most fields. #33
Added Style attribute to most fields. #33
fixed Language Mo issue.
improved has_filed logic for better performance.


= 2.9.6 = 
Fixed file upload issue #22

= 2.9.5 = 
Typo.

= 2.9.4 = 
Added localization support.

= 2.9.3 =
Fixed issue #27
moved all external file calls to local


= 2.9.2 =
Fixed issue #25

= 2.9.1 =
Fixed Typo in line 1812, issue #24

= 2.9 =
Fixed "array" when repater field has something other then text field :).
has_field() now checks repeater fields as well.

= 2.8 =
Fixed issue #10 by moving ajax hook to constructor.
split demo meta box to 2 meta boxes.

= 2.7 =
Fixed Load js on edit pages only.

= 2.6 =
Fixed issue #13.
Fixed issue #14.

= 2.5 = 
Fixed Issue #11.
Added Sortable option to repeater field.

= 2.4 =
Fixed WP_DEBUG errors, and taxonomy field args notice.

= 2.3 = 
* added AMPM param to addTime to show time field with am/pm option

= 2.2 = 
* Fixed use with theme on custom path

= 2.1 = 
* Added Code Editor with syntax highlighting (php,css,html,javascript) using CodeMirror.

= 2.0 =
* Fixed Insert To Post bug

= 1.9 = 
* Fixed Image field functions in repeater block.

= 1.8 =
* fixed multiple image upload issue.
* cleaned js file from unused function.


= 1.7 =
* Fixed demo plugi file with new function names.
* Fixed Wysiwyg for version 3.3 once more, (which should work now).
* Fixed image upload field.

= 1.6 =
* Added an option to set path for themes.
* Fixed repeater dynamic editing

= 1.5 =
* Fixed Wysiwyg for version 3.3


= 1.2 =
* Fixed repeater block JS code.
* Offloaded images with an option to use local images.
* Added inline for repater block.
* Added genric addFiled function.

= 1.1 =
* Reapater Implemented and removed debug leftover var_dump

= 1.0 =
* First Release
[![Analytics](https://ga-beacon.appspot.com/UA-50573135-4/My-Meta-Box/main)](https://github.com/bainternet/My-Meta-Box)

More Repositories

1

Tax-Meta-Class

A class for creating WordPress taxonomies custom fields
PHP
405
star
2

PHP-Hooks

The PHP Hooks Class is a fork of the WordPress filters hook system rolled in to a class to be ported into any php based system .
PHP
274
star
3

Admin-Page-Class

create custom WordPress Admin option Pages
JavaScript
128
star
4

bs3_panel_shortcode

A plugin to add Bootstrap 3 panel shortcode as a part to the GWP tutorial a part of the Take your shortcodes to the ultimate level tutorial http://generatewp.com/?p=11889
JavaScript
63
star
5

Memchaced-Dashboard

A dead simple single file Memchaced stats dashboard in PHP.
PHP
57
star
6

Wamp-WordPress-installer

Simple WordPress Auto Installer for WAMP
PHP
41
star
7

GWP-Custom-Product-Tabs

A plugin to add Custom product tabs for WooCommerce a part of the Create WooCommerce custom product tabs plugin tutorial http://generatewp.com/create-woocommerce-custom-product-tabs-plugin/
PHP
23
star
8

GWP-Widget-Cache

A plugin to cache WordPress Widgets using the Transients API, based on this tutorial http://generatewp.com/?p=10132
PHP
15
star
9

GWP-Menu-Cache

A plugin to cache WordPress menus using the Transients API, based on this tutorial http://generatewp.com/?p=10473
PHP
12
star
10

SQLite-simple-store

Super lightweight Zero configuration sqlite-based key => value store with expiration time for PHP.
PHP
12
star
11

GWP-mail-BCC-and-CC

A plugin to add bcc and cc email address to any mail sent by WordPress part of the Allow multiple recipients to any WordPress mail tutorial http://generatewp.com/allow-multiple-recipients-wordpress-mail/
PHP
11
star
12

FlatFileDB

FlatFileDB
PHP
6
star
13

FancyCheckbox

FancyCheckbox is a simple and lightweight jQuery plugin to create Iphone styled checkboxes
JavaScript
4
star
14

Curlo

simple curl wrapper for PHP based on the WordPress HTTP curl class
PHP
4
star
15

Lyte_video

Lyte_video is a jquery plugin to embed youtube videos on selected event, after the page loads
JavaScript
4
star
16

elementor-oembed-widget

PHP
2
star
17

Contact-Form-7-Israeli-Phone-numbers

This plugin add a new form tag named [telil] which acts just like the tel tag but validate against Israeli mobile and land-line phone numbers ex: 052-5555555, 052-555-5555,0525555555,08-5555555,085555555. known mobile pattern is 10 digital starting with: "050","052","053","054","055","056","057","058","059". known land-lines patterns are 10 digital starting with:"072","073","074","076","077","078" and 9 digital starting with "02","03","04","08","09".
PHP
1
star