Skip to content

Commit 4d88321

Browse files
committed
Add translation default value.
1 parent 9b0653c commit 4d88321

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Field.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ abstract class Field {
105105
*
106106
* @var string
107107
*/
108-
protected $translations;
108+
protected $translations = 'translate';
109109

110110
/**
111111
* Filters and actions to be hooked.
@@ -735,19 +735,19 @@ public function get_default_value() {
735735
}
736736

737737
/**
738-
* Set translation option for the field.
738+
* Set translation for the field.
739739
*
740740
* @param string $translations Type of translation.
741741
* @return self
742742
*/
743-
public function set_translations( $translations ) {
743+
public function set_translations( string $translations ) {
744744
$this->translations = $translations;
745745

746746
return $this;
747747
}
748748

749749
/**
750-
* Get translation option of the field.
750+
* Get the default value of the field.
751751
*
752752
* @return mixed
753753
*/

0 commit comments

Comments
 (0)