apply_filters( 'clanbite_social_kit_insert_post_data', array<string, mixed> $insert_data, array<string, mixed> $params, string $feed_context, int $feed_subject )Filters the data stored for a new social post, just before it is inserted.
Lets a feed context adjust columns (for example visibility). To store your own association (the subject the post belongs to), use the clanbite_social_kit_post_created action, which receives feed_context and feed_subject_id, and read it back from your context's query callback.
Filter PHP
Parameters
$insert_data(array<string, mixed>)Columns for
Data_Access::insert_post().$params(array<string, mixed>)Decoded request body.
$feed_context(string)Registered feed context slug the post targets ('' for personal posts).
$feed_subject(int)Subject ID sent by the client (0 when none).
Example
add_filter( 'clanbite_social_kit_insert_post_data', function ( $insert_data, $params, $feed_context, $feed_subject ) {
// Change $insert_data here.
return $insert_data;
}, 10, 4 );Defined in inc/Rest/Rest_Controller.php