• Resolved mohammadrub

    (@mohammadrub)


    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)
  • Hi @mohammadrub,

    Thanks for reaching out to us!

    I apologize, but as mentioned in the Developer’s Documentation guide where you obtained the code snippet from, we aren’t able to provide support for such customizations. Developer Documentation is provided for reference only.

    In case you’d like to look into custom development options, we highly recommend using Codeable.

    Kindly,

Viewing 1 replies (of 1 total)
  • The topic ‘How to Display Entry Submissions Count for Multi Form’ is closed to new replies.