AnsPress_Hooks::delete_answer( integer $post_id, object $post )
Description #
Delete answer.
Parameters #
- $post_idinteger (Required) Question or answer ID.
- $postobject (Required) Post Object.
Source #
File: includes/hooks.php
public static function delete_answer( $post_id, $post ) { do_action( 'ap_before_delete_answer', $post->ID, $post ); if ( ap_is_selected( $post ) ) { ap_unset_selected_answer( $post->post_parent ); } // Delete qameta. ap_delete_qameta( $post->ID ); }
Expand full source code Collapse full source code View on GitHub: includes/hooks.php:275
Add your comment