yform = $yform; $this->title = (string) $title; $this->description = (string) $description; $this->page_type = (string) $page_type; $this->paper_style = (bool) $paper_style; } /** * Renders a div for the react application to mount to, and hidden inputs where * the app should store it's value so they will be properly saved when the form * is submitted. * * @return void */ public function render() { $this->yform->hidden( $this->title, $this->title ); $this->yform->hidden( $this->description, $this->description ); printf( '
', esc_attr( $this->title ), esc_attr( $this->description ), esc_attr( $this->page_type ), esc_attr( $this->paper_style ) ); } }