We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2a8406 commit b15fad9Copy full SHA for b15fad9
includes/CMB2.php
@@ -928,6 +928,19 @@ public function set_prop( $property, $value ) {
928
return $this->prop( $property );
929
}
930
931
+ /**
932
+ * Set metabox property.
933
+ * @since 2.2.0
934
+ * @param string $property Metabox config property to retrieve
935
+ * @param mixed $value Value to set if no value found
936
+ * @return mixed Metabox config property value or false
937
+ */
938
+ public function set_prop( $property, $value ) {
939
+ $this->meta_box[ $property ] = $value;
940
+
941
+ return $this->prop( $property );
942
+ }
943
944
/**
945
* Get metabox property and optionally set a fallback
946
* @since 2.0.0
0 commit comments