Skip to content

Commit

Permalink
New static property, CMB2_Field::$callable_fields, used to determine …
Browse files Browse the repository at this point in the history
…if a field parameter is callable
  • Loading branch information
jtsternberg committed Sep 8, 2016
1 parent 889cb63 commit 84c6c9d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions includes/CMB2_Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,30 @@ class CMB2_Field extends CMB2_Base {
'after_group',
);

/**
* All CMB2_Field callable field arguments.
* Can be used to determine if a field argument is callable.
*
* @var array
*/
public static $callable_fields = array(
'default',
'row_classes',
'options_cb',
'label_cb',
'render_row_cb',
'before_group',
'before_group_row',
'before_row',
'before',
'before_field',
'after_field',
'after',
'after_row',
'after_group_row',
'after_group',
);

/**
* Constructs our field object
* @since 1.1.0
Expand Down

0 comments on commit 84c6c9d

Please sign in to comment.