Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
add_action( 'wp_enqueue_scripts', 'sp_enqueue_styles_scripts' );
function sp_enqueue_styles_scripts() {
wp_register_script( 'sp-contact-form-wa',
plugin_dir_url( __FILE__ ) . '/assets/contact-form-wa.js',
[ 'jquery' ], '1.0.0', true
);
wp_register_style( 'sp-css-grid', plugin_dir_url( __FILE__ ) . '/assets/contact-form-wa.css', array(), '1.0.0' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment