This function’s access is marked private. This means it is not intended for use by other plugin or theme developers, only in this plugin itself. It is listed here for completeness.

Form_Manager::maybe_upgrade_legacy_form_meta( awsmug\Torro_Forms\DB_Objects\Forms\WP_Screen $screen )

Upgrades legacy form meta when a form is accessed in the admin.

Description

TODO: Remove this method in the future.

See also

Parameters

$screen

(awsmug\Torro_Forms\DB_Objects\Forms\WP_Screen) (Required) Current screen object.

Source

File: src/db-objects/forms/form-manager.php

	private function maybe_upgrade_legacy_form_meta( $screen ) {
		if ( 'post' !== $screen->base ) {
			return;
		}

		if ( $this->get_prefix() . 'form' !== $screen->post_type ) {
			return;
		}

		if ( empty( $_GET['post'] ) ) {
			return;
		}

		$this->legacy_upgrades->maybe_upgrade_legacy_form_meta( (int) $_GET['post'] );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.