LLMS_Forms::is_a_core_form( WP_Post|int $form )

Check whether a given form is a core form.

Description Description

When there are multiple forms for a location, the core form is identified as the one with the lowest ID.

Top ↑

Parameters Parameters


(WP_Post|int) (Required) Form's WP_Post instance, or its ID.

Top ↑

Return Return


Top ↑

Source Source

File: includes/forms/class-llms-forms.php

	public function is_a_core_form( $form ) {

		$form_id = $form instanceof WP_Post ? $form->ID : $form;

		if ( ! $form_id ) {
			return false;

		return in_array( $form_id, $this->get_core_forms( 'ids' ), true );


Top ↑

Changelog Changelog

Version Description
6.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.