Skip to content

Instantly share code, notes, and snippets.

@Idealien
Created January 12, 2018 02:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Idealien/51526f7f0d3de1646616fdb432e6672a to your computer and use it in GitHub Desktop.
Save Idealien/51526f7f0d3de1646616fdb432e6672a to your computer and use it in GitHub Desktop.
Gravity Flow Timeline Manipulation
<?php
$API = new Gravity_Flow_API( '1' );
$form = GFAPI::get_form( '1' );
require_once( gravity_flow()->get_base_path() . '/includes/pages/class-entry-detail.php' );
$notes = Gravity_Flow_Entry_Detail::get_timeline_notes( $entry );
$output = "<H3>Timeline</h3><ul>";
foreach( $notes as $note):
if( $note->user_name !== 'notification' && $note->value !== 'Step expired' ):
$output .= "<li><strong>" . $note->date_created . ":" . $note->user_name . "</strong><br/>" . $note->value . "<br/><br/></li>";
endif;
endforeach;
$output .= <ul>";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment