Skip to content

Commit

Permalink
Merge pull request #3711 from pods-framework/feature/#3710
Browse files Browse the repository at this point in the history
Filters to modify additional field options
  • Loading branch information
sc0ttkclark authored Aug 8, 2016
2 parents a259f03 + 96147ee commit e6d3fab
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 e6d3fab

Please sign in to comment.