/** * Register a class to be used as a form_view for the current class. * * $wp_form->register_view( 'post_admin', 'WP_Post_Adminview' ); * * @param string $view_name The name of the view that is unique for this class. * @param string $class_name The class name for the View object. */ function register_view($view_name, $class_name) { WP_Metadata::register_view('form', $view_name, $class_name, get_class($this)); }