Skip to content

Commit 3078334

Browse files
author
Amanda
committed
Show in rest option to Group
1 parent a9edfca commit 3078334

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Group.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,17 @@ public function show_in_rest() {
495495
return $this;
496496
}
497497

498+
/**
499+
* Change the field group's show in rest status to unactive.
500+
*
501+
* @return self
502+
*/
503+
public function hide_in_rest() {
504+
$this->show_in_rest = 0;
505+
506+
return $this;
507+
}
508+
498509
/**
499510
* Register the field group to ACF.
500511
*

0 commit comments

Comments
 (0)