Skip to content

Commit

Permalink
Filters to modify additional field options
Browse files Browse the repository at this point in the history
  • Loading branch information
JoryHogeveen committed Aug 6, 2016
1 parent 6972227 commit 96147ee
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions classes/PodsAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -1965,6 +1965,19 @@ public function admin_setup_edit_field_options ( $pod ) {
}

$options[ 'additional-field' ][ $type ] = PodsForm::ui_options( $type );

/**
* Modify Additional Field Options tab
*
* @since 2.7
*
* @param array $options Additional field type options
* @param string $type Field type
* @param array $options Tabs, indexed by label
* @param object|Pods Pods object for the Pod this UI is for.
*/
$options[ 'additional-field' ][ $type ] = apply_filters( 'pods_admin_setup_edit_' . $type . '_additional_field_options', $options[ 'additional-field' ][ $type ], $type, $options, $pod );
$options[ 'additional-field' ][ $type ] = apply_filters( 'pods_admin_setup_edit_additional_field_options', $options[ 'additional-field' ][ $type ], $type, $options, $pod );
}

$input_helpers = array(
Expand Down

0 comments on commit 96147ee

Please sign in to comment.