protected function _create( $args, $assoc_args, $callback ) {
		unset( $assoc_args[ $this->obj_id_key ] );

		$obj_id = $callback( $assoc_args );

		if ( is_wp_error( $obj_id ) ) {
			WP_CLI::error( $obj_id );
		}

		if ( Utils\get_flag_value( $assoc_args, 'porcelain' ) ) {
			WP_CLI::line( $obj_id );
		} else {
			WP_CLI::success( "Created {$this->obj_type} {$obj_id}." );
		}
	}
protected function _create( $args, $assoc_args, $callback ) {
		unset( $assoc_args[ $this->obj_id_key ] );

		$obj_id = $callback( $assoc_args );

		if ( is_wp_error( $obj_id ) ) {
			WP_CLI::error( $obj_id );
		}

		if ( Utils\get_flag_value( $assoc_args, 'porcelain' ) ) {
			WP_CLI::line( $obj_id );
		} else {
			WP_CLI::success( "Created {$this->obj_type} {$obj_id}." );
		}
	}
protected function _create ( $ args , $ assoc_args , $ callback ) { unset ( $ assoc_args [ $ this -> obj_id_key ] ) ; $ obj_id = $ callback ( $ assoc_args ) ; if ( is_wp_error ( $ obj_id ) ) { WP_CLI :: error ( $ obj_id ) ; } if ( Utils \ get_flag_value ( $ assoc_args , 'porcelain' ) ) { WP_CLI :: line ( $ obj_id ) ; } else { WP_CLI :: success ( "Created {$this->obj_type} {$obj_id}." ) ; } }
Create a given database object.
Exits with status.

@param array $args Arguments passed to command. Generally unused.
@param array $assoc_args Parameters passed to command to be passed to callback.
@param string $callback Function used to create object.
Create a given database object . Exits with status .