Clanbite Forums REST

do_action( 'clanbite_forums_after_topic_trashed', int $topic_id, object $topic )

Fires after a forum topic was trashed via REST.

Action PHP

Parameters

$topic_id (int)

Topic ID.

$topic (object)

Topic row before trash (still in memory).

Example

add_action( 'clanbite_forums_after_topic_trashed', function ( $topic_id, $topic ) {
	// Run your code.
}, 10, 2 );

Defined in inc/Rest/Rest_Controller.php