Follow mockup for successful form submission

This commit is contained in:
Kelly Dwan 2019-11-20 18:25:38 -05:00
parent 3133f0896a
commit de07108905
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D
4 changed files with 28 additions and 16 deletions

View file

@ -270,7 +270,7 @@ function enqueue_assets() {
if ( CPT_ID === get_post_type() ) {
$ver = filemtime( FiveForTheFuture\PATH . '/assets/js/frontend.js' );
wp_enqueue_script( '5ftf-frontend', plugins_url( 'assets/js/frontend.js', __DIR__ ), [ 'jquery', 'wp-util', 'wicg-inert' ], $ver, true );
wp_enqueue_script( '5ftf-frontend', plugins_url( 'assets/js/frontend.js', __DIR__ ), [ 'jquery', 'wp-a11y', 'wp-util', 'wicg-inert' ], $ver, true );
$script_data = [
'ajaxurl' => admin_url( 'admin-ajax.php', 'relative' ), // The global ajaxurl is not set on the frontend.