(Advanced) How to update entry approval status using PHP

If you want to update the approval status of an entry using PHP, you should use the GravityView_Entry_Approval::update_approved method:

By default, this will add a note to the entry that the approval status has been updated by the current user. If you want to disable this entry note, you can do so with the gravityview/approve_entries/add-note filter:

add_filter( 'gravityview/approve_entries/add-note', '__return_false' );
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