Clanbite Social Kit Social

apply_filters( 'clanbite_social_kit_home_feed_post_ids', int[] $ids, int $viewer_id )

Filters the extra post IDs shown in a viewer's home feed.

Registered feed contexts contribute through their home_post_ids argument; use this to add or remove IDs from other code. Only include posts the viewer may read.

Filter PHP

Parameters

$ids (int[])

Post IDs contributed by feed contexts.

$viewer_id (int)

Viewer user ID.

Example

add_filter( 'clanbite_social_kit_home_feed_post_ids', function ( $ids, $viewer_id ) {
	// Change $ids here.
	return $ids;
}, 10, 2 );

Defined in inc/Social/Feed_Context_Registry.php