How to Display Entry Submissions Count for Multi Form
-
Hello
I have a multilingual website
Each language has a different form.This code shows me the Entry Submissions Count for one form based on the ID
/** * Shortcode that displays the number of completed entries for a form. * * Usage: [wpforms_entry_total form_id="X"] - X is the form ID. * * @link https://wpforms.com/developers/display-entry-submissions-count-for-a-specific-form/ * * @param array $atts * @return int */ function wpf_dev_form_entry_total( $atts ) { $args = shortcode_atts( array( 'form_id' => '' ), $atts ); if ( empty( $atts['form_id'] ) ) { return; } $total = wpforms()->entry->get_entries( array( 'form_id' => $atts['form_id'] ), true ); return absint( $total ); } add_shortcode( 'wpforms_entry_total', 'wpf_dev_form_entry_total' );
https://wpforms.com/developers/display-entry-submissions-count-for-a-specific-form/
How can I show the sum of the entries for all forms together?
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to Display Entry Submissions Count for Multi Form’ is closed to new replies.