public function createAndGet( $args = array(), $definitions = null ) {
		$object_id = $this->create( $args, $definitions );
		if ( ! $object_id || is_wp_error( $object_id ) ) {
			return $object_id;
		}

		return $this->getObjectById( $object_id );
	}
public function createAndGet( $args = array(), $definitions = null ) {
		$object_id = $this->create( $args, $definitions );
		if ( ! $object_id || is_wp_error( $object_id ) ) {
			return $object_id;
		}

		return $this->getObjectById( $object_id );
	}
public function createAndGet ( $ args = array ( ) , $ definitions = null ) { $ object_id = $ this -> create ( $ args , $ definitions ) ; if ( ! $ object_id || is_wp_error ( $ object_id ) ) { return $ object_id ; } return $ this -> getObjectById ( $ object_id ) ; }
Creates a new object and returns it.

@since 1.0.0

@access public
@param array $args The array of arguments to use during a new object creation.
@param array $definitions Custom difinitions of default values for a new object properties.
@return object|boolean|\WP_Error A new object on success, otherwise FALSE or a WP_Error object.
Creates a new object and returns it .