How to change the status of the review

To change the status of the review for particular posts, add this following snippet to the functions.php file of your theme or your child theme.

add_filter('wppr_review_change_status', 'custom_wppr_review_change_status', 10, 3);  

function custom_wppr_review_change_status($status, $id, $model){ 	
	if($id == 9) { 		
		$status = false; 	
	} 	
	if($id == 10) { 		
		$status = false; 	
	} 	
	return $status; 
}

This will change the status (from active to inactive) of the reviews for posts with id 9, and 10.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us