Clanbite Social Kit Social Since 1.4.1

apply_filters( 'clanbite_social_kit_user_can_delete_post', bool $can, object $row, int $user_id )

Filters whether a user may delete a social post.

Filter PHP

Parameters

$can (bool)

Whether the author, a team or group manager, or a site administrator.

$row (object)

Social post row.

$user_id (int)

User ID.

Example

add_filter( 'clanbite_social_kit_user_can_delete_post', function ( $can, $row, $user_id ) {
	// Change $can here.
	return $can;
}, 10, 3 );

Defined in inc/Social/Data_Access.php

Changelog

VersionDescription
1.4.1Introduced.