GF Submission Counts
Display the total number of Submission for a specific form.
Syntex [gf-count id=””] | Where id = Form ID in consideration.
// Add Shortcode
function gf_submission_count( $atts ) {
// Attributes
$atts = shortcode_atts(
array(
'id' => '1',
),
$atts,
'gf-count'
);
$summary = RGFormsModel::get_form_counts( $atts['id'] );
echo $summary['total'];
}
add_shortcode( 'gf-count', 'gf_submission_count' );