apply_filters( 'llms_builder_trash_custom_item', null|array $trash_response, array $res, mixed $id )

Custom or 3rd party items can perform custom deletion actions using this filter.


Description Description

Return an associative array containing at least the $id to cease execution and have the custom item returned via the process_trash() method.

A successful deletion return should be: array( 'id' => $id ).

A failure should contain an error message in a second array member: array( 'id' => $id, 'error' => esc_html__( 'My error message', 'my-domain' ) ).


Top ↑

Parameters Parameters

$trash_response

(null|array) Denotes the trash response. See description above for details.

$res

(array) The initial default error response which can be modified for your needs and then returned.

$id

(mixed) The ID of the course element. Usually a WP_Post id.


Top ↑

Source Source

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

View on GitHub



Top ↑

User Contributed Notes User Contributed Notes

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