CMB2_Post_Search_field::render_field PHP Method

render_field() public method

public render_field ( $field, $escaped_value, $object_id, $object_type, $field_type )
    public function render_field($field, $escaped_value, $object_id, $object_type, $field_type)
    {
        echo $field_type->input(array('data-search' => json_encode(array('posttype' => $field->args('post_type'), 'selecttype' => 'radio' == $field->args('select_type') ? 'radio' : 'checkbox', 'selectbehavior' => 'replace' == $field->args('select_behavior') ? 'replace' : 'add', 'errortxt' => esc_attr($field_type->_text('error_text', __('An error has occurred. Please reload the page and try again.'))), 'findtxt' => esc_attr($field_type->_text('find_text', __('Find Posts or Pages')))))));
    }