field['search_data'] ) ? esc_attr( 'data-search_params' ) . '="' . esc_attr( wp_json_encode( $this->field['search_data'] ) ) . '"' : '' ); } /** * Set Select2 args attributes. * * @return void */ private function select_args() { echo wp_kses_post( ! empty( $this->field['select_args'] ) ? esc_attr( 'data-select_args' ) . '="' . esc_attr( wp_json_encode( $this->field['select_args'] ) ) . '"' : '' ); } /** * Get Empty Value. * * @return string */ public function get_empty_value() { return ! empty( $this->field['multiple'] ) ? array() : $this->field['value']; } }