Control: Pages - 10quality/wpmvc-addon-administrator GitHub Wiki
Control used as a field type to display a dropdown (<select>
) with all WordPress pages listed.
// Namespace and use statement...
class Settings extends Model
{
// Class properties...
protected function init()
{
// Other properties...
$this->tabs = [
'tab_id' => [
'fields' => [
'my_page' => [
'type' => 'pages',
'title' => __( 'My Page', 'my-domain' ),
],
// Other fields...
],
],
];
}
}
Control | Data type | Description |
---|---|---|
wide |
bool |
Flag that indicates if the input should display wider or small. |
show_option_none |
string |
See WordPress documentation. |
show_option_no_change |
string |
See WordPress documentation. |
option_none_value |
string |
See WordPress documentation. |
value_field |
string |
See WordPress documentation. |
depth |
int |
See WordPress documentation. |