Clanbite Social Kit Social Since 1.4.0
do_action( 'clanbite_social_kit_post_deleted', int $post_id, object $row )Fires after a social post and everything attached to it (comments, reactions, media, poll votes) was deleted.
Use it to undo what the post earned elsewhere, for example points.
Action PHP
Parameters
$post_id(int)Deleted post ID.
$row(object)The post row as it was before deletion.
Example
add_action( 'clanbite_social_kit_post_deleted', function ( $post_id, $row ) {
// Run your code.
}, 10, 2 );Defined in inc/Social/Data_Access.php
Changelog
| Version | Description |
|---|---|
| 1.4.0 | Introduced. |