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.
Parameters Parameters
- $force
-
(boolean) If
true
the post is deleted, iffalse
it will be moved to the trash. - $id
-
(int) WP_Post ID of the post being trashed.
Source Source
Changelog Changelog
Version | Description |
---|---|
3.37.12 | Introduced. |