From 6f740598b44eee4c0ba8b44283e298d84ed21586 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Sat, 21 Nov 2015 18:32:04 +0800 Subject: [PATCH] Added country and type filter hooks --- core/um-fields.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/um-fields.php b/core/um-fields.php index 5e803a9a..d26eb067 100644 --- a/core/um-fields.php +++ b/core/um-fields.php @@ -919,6 +919,8 @@ class UM_Fields { } } + $type = apply_filters("um_hook_for_field_{$type}", $type ); + /* Begin by field type */ switch( $type ) { @@ -1457,6 +1459,8 @@ class UM_Fields { } if (!isset($options)){ + $options = apply_filters("um_multiselect_options_{$data['type']}", $options, $data ); + $options = $ultimatemember->builtin->get ( 'countries' ); }