summaryrefslogtreecommitdiff
path: root/src/MetaboxField.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/MetaboxField.php')
-rw-r--r--src/MetaboxField.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/MetaboxField.php b/src/MetaboxField.php
index 53e60ed..e70f9c6 100644
--- a/src/MetaboxField.php
+++ b/src/MetaboxField.php
@@ -114,6 +114,18 @@ class MetaboxField
}
/**
+ * @param string $class
+ *
+ * @return $this
+ */
+ public function class(string $class) {
+ $this->options['wrapper'] ??= [];
+ $this->options['wrapper']['class'] = $class;
+
+ return $this;
+ }
+
+ /**
* Add the acf local field
*/
public function add()