Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Junior Grossi

    (@jgrossi)

    Hi!

    I started a Github repo with some hooks I’m finding inside the Contact Form 7 code.

    If anyone want to contribute please check https://github.com/jgrossi/contact-form-7-hooks.

    Thanks!

    Thread Starter Junior Grossi

    (@jgrossi)

    Thanks @buzztone!

    Here is a list of all CF7 hooks in the most current version (4.3.1):

    $ grep -r do_action *
    admin/includes/admin-functions.php:	do_action( 'wpcf7_save_contact_form', $contact_form );
    admin/edit-contact-form.php:<?php do_action( 'wpcf7_admin_notices' ); ?>
    admin/edit-contact-form.php:<form method="post" action="<?php echo esc_url( add_query_arg( array( 'post' => $post_id ), menu_page_url( 'wpcf7', false ) ) ); ?>" id="wpcf7-admin-form-element"<?php do_action( 'wpcf7_post_edit_form_tag' ); ?>>
    admin/edit-contact-form.php:	do_action( 'wpcf7_admin_footer', $post );
    admin/admin.php:	do_action( 'wpcf7_admin_init' );
    admin/admin.php:<?php do_action( 'wpcf7_admin_notices' ); ?>
    admin/admin.php:<?php do_action( 'wpcf7_admin_notices' ); ?>
    admin/admin.php:<?php do_action( 'wpcf7_admin_notices' ); ?>
    includes/contact-form.php:		do_action( 'wpcf7_contact_form', $this );
    includes/contact-form.php:		do_action( 'wpcf7_submit', $this, $result );
    includes/contact-form.php:				do_action( 'wpcf7_after_create', $this );
    includes/contact-form.php:				do_action( 'wpcf7_after_update', $this );
    includes/contact-form.php:			do_action( 'wpcf7_after_save', $this );
    includes/controller.php:	do_action( 'wpcf7_enqueue_scripts' );
    includes/controller.php:	do_action( 'wpcf7_enqueue_styles' );
    includes/submission.php:			do_action( 'wpcf7_mail_sent', $contact_form );
    includes/submission.php:			do_action( 'wpcf7_mail_failed', $contact_form );
    includes/submission.php:		do_action( 'wpcf7_before_send_mail', $contact_form );
    settings.php:	do_action( 'wpcf7_init' );
    settings.php:	do_action( 'wpcf7_upgrade', $new_ver, $old_ver );
    Thread Starter Junior Grossi

    (@jgrossi)

    Thanks @dotan!

    Thanks for the idea @dotan. i never thought about using grep for this.

    Hi

    Any Hook to to sum and multiply fields. I need to multiply the price by the quantity and have a total.

    Some clients migth select the 3 tickets with diferent quantity

    I have a form where I have 3 tickets with diferent price each one.

    Price Quantity

    Ticket 1 $60

    Ticket 2 $160

    Ticket 3 $260

    TOTAL =

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘List of Contact Form 7 Hooks’ is closed to new replies.