added if header
This commit is contained in:
parent
af66737939
commit
6a51a303f7
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue