Clanbite Social Kit General

apply_filters( 'clanbite_social_feed_profile_user_id', int $profile_user_id, string $feed_context, array<string, mixed> $attributes )

Allow themes / other plugins to supply the profile user ID (e.g. custom routing).

Filter PHP

Parameters

$profile_user_id (int)

Resolved ID (0 if unknown).

$feed_context (string)

Feed context slug.

$attributes (array<string, mixed>)

Block attributes.

Example

add_filter( 'clanbite_social_feed_profile_user_id', function ( $profile_user_id, $feed_context, $attributes ) {
	// Change $profile_user_id here.
	return $profile_user_id;
}, 10, 3 );

Also fired in

  • src/blocks/player-add-friend/render.php
  • src/blocks/player-at-tag/render.php
  • src/blocks/player-friends-count/render.php
  • src/blocks/player-post-count/render.php

Defined in inc/functions.php