From 6a51a303f762d4400d0c8a5e186bc83aca0ae505 Mon Sep 17 00:00:00 2001 From: ruru4143 Date: Mon, 11 Dec 2023 23:21:20 +0100 Subject: [PATCH] added if header --- includes/activity/class-base-object.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/includes/activity/class-base-object.php b/includes/activity/class-base-object.php index e8fca38..dd3d093 100644 --- a/includes/activity/class-base-object.php +++ b/includes/activity/class-base-object.php @@ -735,7 +735,13 @@ class Base_Object { return \wp_json_encode( $array, \JSON_HEX_TAG | \JSON_HEX_AMP | \JSON_HEX_QUOT ); } - public function if( bool $b ) { + /** + * skips next setter if( false ); + * + * @param bool $b + * + */ + public function if( $b ) { $this->_skip_next = ! $b; return $this; }