LLMS_Question::is_orphan()
Determine if the question is an orphan
Return Return
(bool)
Source Source
File: includes/models/model.llms.question.php
* @since 3.27.0
*
* @return bool
*/
public function is_orphan() {
$statuses = array( 'publish', 'draft' );
$parent_id = $this->get( 'parent_id' );
if ( ! $parent_id ) {
return true;
} elseif ( ! in_array( get_post_status( $parent_id ), $statuses, true ) ) {
return true;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.27.0 | Introduced. |