true, // As in the manual install instructions. 'strategy' => 'async', // WordPress 6.3+; older versions load it in the footer. ) ); // WordPress has no first-class API for arbitrary attributes on an enqueued // script, so add them via the loader tag filter. add_filter( 'script_loader_tag', 'leadshield_add_script_attributes', 10, 3 ); } add_action( 'wp_enqueue_scripts', 'leadshield_enqueue_script' ); /** * Add the data-* attributes shield.js reads to configure itself. * * @param string $tag The