Skip to content

friends_unreact

Alex Kirk edited this page Apr 8, 2024 · 10 revisions

Generic Example

add_filter(
    'friends_unreact',
    function (
        Friends\null $null,
        $post_id,
        $reaction,
        $taxonomy_username
    ) {
        // Your code here
        return $null;
    },
    10,
    4
);

Parameters

  • Friends\null $null
  • $post_id
  • $reaction Other examples: '2b50', $reaction
  • $taxonomy_username

Files

apply_filters( 'friends_unreact', null, $post_id, $_POST['reaction'] )
apply_filters( 'friends_unreact', null, $post_id, '2b50', $taxonomy_username )
apply_filters( 'friends_unreact', null, $post_id, $reaction )

Hooks

Clone this wiki locally