(Advanced) How to update entry approval status using PHP

If you want to update entry approval statuses using PHP, you should use the GravityView_Entry_Status::update_approval() 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' );

asdsad

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