AnsPress_Form::page_select_field( array $field = array() )
Description #
Page select field
Parameters #
- $fieldarray (Optional) Default value: array()
Source #
File: includes/class/form.php
private function page_select_field($field = array()) { if ( isset( $field['label'] ) ) { $this->label(); } $this->output .= '<div class="ap-form-fields-in">'; $this->output .= wp_dropdown_pages( array( 'show_option_none' => __( 'Select a page', 'anspress-question-answer' ), 'selected' => @$field['value'], 'name' => @$field['name'], 'post_type' => 'page', 'echo' => false ) ); $this->error_messages(); if ( ! $this->field['show_desc_tip'] ) { $this->desc(); } $this->output .= '</div>'; }
Expand full source code Collapse full source code View on GitHub: includes/class/form.php:470
Add your comment