Text Area
TextArea element. Similar to the Text Element, with a larger, resizeable area to capture content.
Read View | Edit View |
---|---|
Constructor
/**
* @param $id
* @param string $label - the label of the element
* @param array $permissions - View, edit, read rights of the elemenet.
See wpOOWPermissions in the Overview section.
*
**/
function __construct($id, $label, $permissions=[])
Usage example
// Declaring
$bookMetaDescription = new TextArea("_bookMetaDescription", "Book Meta Description")
$bookReviewPostType->AddField($bookMetaDescription);
// Fetching Data
foreach ($bookReviewPostType->Query()->Select()->Fetch() as $row)
{
echo $row["_bookMetaDescription"]
}