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.
Parameters Parameters
- $form
-
(WP_Post|int) (Required) Form's WP_Post instance, or its ID.
Return Return
(boolean)
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 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.4.0 | Introduced. |