Form_Manager::insert_into_db( array $args )

Internal method to insert a new form into the database.

Description

See also

Parameters

$args

(array) (Required) Array of column => value pairs for the new database row.

Return

(int|false) The ID of the new form, or false on failure.

Source

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

	protected function insert_into_db( $args ) {
		$args = $this->map_args( $args );

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

		return $result;
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.