• Hello,

    When i send a form is it possible to get your number entry in database to put it in the form subject received ?
    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter pipoulito

    (@pipoulito)

    For example, i have have sent a form and lead#1217 has been created.
    As i call a shortcode when i send the form, i would like to know if it is possible to get 1217 in database when sending ?

    Thread Starter pipoulito

    (@pipoulito)

    i assume the post title lead#1217 is created after that the form is sent so i can’t do :
    $args = array(
    ‘numberposts’ => 1,
    ‘post_type’ => ‘elementor_lead’
    );

    $latest_lead = get_posts( $args );

    But i suppose i can get the counter value 1216 used to generate the post title lead#1217

    Thread Starter pipoulito

    (@pipoulito)

    may be should i use ?
    $cpt= $latest_lead[0]->ID +1 ;

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get number entry’ is closed to new replies.