apply_filters( "bp_activity_{$post->post_type}_pre_publish", bool $value, int $blog_id, int $post_id, int $user_id )

Filters whether or not to post the activity.


Description Description

This is a variable filter, dependent on the post type, that lets components or plugins bail early if needed.


Parameters Parameters

$value

Whether or not to continue.

$blog_id

ID of the current site.

$post_id

ID of the current post being published.

$user_id

ID of the current user or post author.


Top ↑

Source Source

File: bp-activity/bp-activity-functions.php


Top ↑

Changelog Changelog

Changelog
Version Description
2.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.