diff --git a/includes/admin/core/class-admin-metabox.php b/includes/admin/core/class-admin-metabox.php index 32513057..394f3cd8 100644 --- a/includes/admin/core/class-admin-metabox.php +++ b/includes/admin/core/class-admin-metabox.php @@ -672,7 +672,21 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) { */ function load_metabox_directory( $object, $box ) { $box['id'] = str_replace( 'um-admin-form-', '', $box['id'] ); - include_once UM()->admin()->templates_path . 'directory/'. $box['id'] . '.php'; + + preg_match('#\{.*?\}#s', $box['id'], $matches ); + + if ( isset( $matches[0] ) ) { + $path = $matches[0]; + $box['id'] = preg_replace('~(\\{[^}]+\\})~','', $box['id'] ); + } else { + $path = um_path; + } + + $path = str_replace('{','', $path ); + $path = str_replace('}','', $path ); + + + include_once $path . 'includes/admin/templates/directory/'. $box['id'] . '.php'; wp_nonce_field( basename( __FILE__ ), 'um_admin_save_metabox_directory_nonce' ); } diff --git a/templates/members.php b/templates/members.php index 021bd26f..6778d0e6 100644 --- a/templates/members.php +++ b/templates/members.php @@ -188,6 +188,9 @@ if ( ( ( $search && $show_search ) || ( $filters && $show_filters && count( $sea
+ + +