CYBER MONDAY - 30% OFF Use coupon CM30 at checkout - Learn more

wsf_form_get_all_key_value

Description

The wsf_form_get_all_key_value PHP function returns an array of forms in a key value format.

$form_id => $form_label

Usage

wsf_form_get_all_key_value( $published, $order_by );

Parameters

  1. $published Boolean
    Whether to return published forms.
    Default value: false
  2. $order_by String
    Which form parameter to order the array by.
    Default value: label

Return

$form_array Array
An array of forms in a key value format. $form_id => $form_label.