Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Wpf_Tokens::get_wpforms_form( int $form_id )

Retrieves a specific WPForm form.


Parameters Parameters

$form_id

(Required) The ID of the form.


Top ↑

Return Return

(array) The decoded json value.


Source Source

File: src/integrations/wpforms/tokens/wpf-tokens.php

	private function get_wpforms_form( $form_id = 0 ) {
		global $wpdb;
		return json_decode(
			$wpdb->get_var(
				$wpdb->prepare(
					"SELECT post_content FROM $wpdb->posts WHERE id = %d",
					$form_id
				)
			),
			true
		);
	}