mainwp_before_post_action

Fires before post/page publish/unpublish/trash/delete/restore actions.

Parameters

$type
(string) Type.
$pAction
(string) Action.
$postId
(int) Post ID.
$website
(object) Object containing the child site data.

Usage Example