Home › Forums › Front-end Issues › Front-end form is creating 2 posts › Reply To: Front-end form is creating 2 posts
UPDATE: I was able to determine it is a plugin I am using to defer the loading of all JavaScripts added by the way of wp_enqueue_script().
The plugin does provide a way to exclude a script from being deferred but I am not sure where to look for the script ACF is using.
Here is the filter the plugin provides:
// Don't defer this script.
add_filter( 'do_not_defer', 'exclude_canvas_script' );
function exclude_canvas_script( $do_not_defer ) {
$do_not_defer[] = 'my-canvas-script';
return $do_not_defer;
}
Anyone know if there is a way to use this with ACF?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.