Form_Edit_Page_Handler::maybe_print_post_form_novalidate( WP_Post $post )

Prints a ‘novalidate’ attribute for the post form if conditions are met.

Description

Parameters

$post

(WP_Post) (Required) Post for which the form is currently being printed.

Source

File: src/db-objects/forms/form-edit-page-handler.php

	public function maybe_print_post_form_novalidate( $post ) {
		$form = $this->form_manager->get( $post->ID );
		if ( ! $form ) {
			return;
		}

		echo ' novalidate="novalidate"';
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.