wpmem_form_label()

Description

This function creates a form label.

Parameters

$args
(array)(required) An array of settings consisting of the following keys:

  • @type string $meta_key
  • @type string $label_text
  • @type string $type
  • @type string $class (optional)
  • @type string $required (optional)
  • @type string $req_mark (optional)

Return Values

(string) The HTML of the label.

Examples

[gist id=”71999f4cb8ec461f56fc2263e2b131bb” file=”wpmem_form_label_example.php”]

Changelog

Introduced in version 3.1.7

Source

wpmem_form_label() is located in /inc/api.php.