rwmb_frontend_before_process with ajax enabled not working

Support MB Frontend Submission rwmb_frontend_before_process with ajax enabled not working

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #34157
    Nicholas CoxNicholas Cox
    Participant

    Hi,

    I was testing the 'rwmb_frontend_before_process' and it seems it does not fire when ajax=true is set in the shortcode? I set ajax=false and I can confirm the 'rwmb_frontend_before_process' does fire correctly. Any ideas?

    [mb_frontend_form id="dc-product" confirmation="Your post has been successful" ajax="true"]

    add_action( 'rwmb_frontend_before_process', function( $config ) {  
        if ( 'dc-product' === $config['id'] ) {
            error_log(print_r($config, true)); //test
        }   
    }, 10, 2 );

    Thanks

    Nick

    #34164
    Long NguyenLong Nguyen
    Moderator

    Hi Nick,

    It works as well on my local site, screen record https://monosnap.com/file/7C7m2JRPjox547AdON3RrASTYmOto6

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.