do_action( "bp_activity_post_type_transition_status_{$post->post_type}", WP_Post $post, string $new_status, string $old_status )

Fires when the old and the new post status are not ‘publish’.

Description

This is a variable filter that is dependent on the post type being untrashed.

Parameters

$post

(WP_Post) Post data.

$new_status

(string) New status for the post.

$old_status

(string) Old status for the post.

Source

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

Changelog

Changelog
Version Description
BuddyPress 2.5.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.