Created
September 19, 2024 17:46
-
-
Save Crocoblock/64d5480da995c957b8ab182b3a873ae4 to your computer and use it in GitHub Desktop.
JetFormBuilder Change form action URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'jet-form-builder/form-action-url', function( $url ) { | |
$form_id = ( int ) ( jet_fb_live()->form_id ?? 0 ); | |
if ( $form_id === 12598 ) { | |
return 'https://google.com'; | |
} | |
return $url; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment