Form_Manager::update_in_db( int $form_id, array $args )

Internal method to update an existing form in the database.

Description

See also

Parameters

$form_id

(int) (Required) ID of the form to update.

$args

(array) (Required) Array of column => value pairs to update in the database row.

Return

(bool) True on success, or false on failure.

Source

File: src/db-objects/forms/form-manager.php

	protected function update_in_db( $form_id, $args ) {
		$args = $this->map_args( $args );
		$args['ID'] = $form_id;

		$result = wp_update_post( $args, true );
		if ( is_wp_error( $result ) ) {
			return false;
		}

		return true;
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.