add_action( 'wp_footer', function () { if (!is_admin()) { ?> <script> snowStorm.start(); snowStorm.snowFlakeWidth = 60; snowStorm.snowFlakeHeight = 60; snowStorm.flakesMax = 128; snowStorm.flakesMaxActive = 128; snowStorm.animationInterval = 30; </script> <?php } });
Check Also
input file字段选择图片之后怎么实现预览(还未上传到服务器的情况下)
$("#txt_image") …