LLMS_Question::delete_choice( string $id )

Delete a choice by ID


Parameters Parameters

$id

(string) (Required) Choice ID.


Top ↑

Return Return

(boolean)


Top ↑

Source Source

File: includes/models/model.llms.question.php

	public function delete_choice( $id ) {

		$choice = $this->get_choice( $id );
		if ( ! $choice ) {
			return false;
		}
		return $choice->delete();

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.16.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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