Clanbite Forums REST

do_action( 'clanbite_forums_reply_created', int $reply_id, int $topic_id, int $user_id, object $reply )

Fires after a forum reply is successfully created via REST.

Action PHP

Parameters

$reply_id (int)

Reply ID.

$topic_id (int)

Topic ID.

$user_id (int)

Author user ID.

$reply (object)

Reply row from Data_Access::get_reply().

Example

add_action( 'clanbite_forums_reply_created', function ( $reply_id, $topic_id, $user_id, $reply ) {
	// Run your code.
}, 10, 4 );

Defined in inc/Rest/Rest_Controller.php