Just drop this simple PHP snippets at end of functions.php file. It will fetch all unapproved entries from database.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<?php //* Don't include this line /** * Displaying unapproved entries * * @author Paul * @license GPL2.0+ */ add_filter('gravityview_get_entries', 'paul_awaiting_approval', 1001, 3 ); function paul_awaiting_approval($parameters, $args, $form_id ) { $parameters['search_criteria']['field_filters'][] = array( 'key' => GravityView_Entry_Approval::meta_key, 'value' => '', 'operator' => 'is' ); $parameters['cache'] = false; return $parameters; } |