Activity_Helper::_before_delete( integer $post_id )
Description #
Callback for before_delete_post
.
Deletes activities related to a post.
Parameters #
- $post_idinteger (Required) Post id.
Source #
File: includes/class/class-activity-helper.php
public static function _before_delete( $post_id ) { // phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore $_post = ap_get_post( $post_id ); // Return if not AnsPress cpt. if ( ! ap_is_cpt( $_post ) ) { return; } ap_delete_post_activity( $post_id ); }
Expand full source code Collapse full source code View on GitHub: includes/class/class-activity-helper.php:98
Add your comment