apply_filters( "llms_builder_{$post_type}_force_delete", boolean $force, int $id )

Determine whether or not a post type should be moved to the trash or deleted when trashed via the Course Builder.

Description Description

The dynamic portion of this hook, $post_type, refers to the post type name of the post that’s being trashed.

By default all post types are moved to trash except for section, llms_question, and llms_quiz post types.

Top ↑

Parameters Parameters


(boolean) If true the post is deleted, if false it will be moved to the trash.


(int) WP_Post ID of the post being trashed.

Top ↑

Source Source

File: includes/admin/class.llms.admin.builder.php

View on GitHub

Top ↑

Changelog Changelog

Version Description
3.37.12 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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