How to create a button click counter meta box?
First of all output your javascript in like this is a worse practice. So it’s a lot better if you create your javascript file and the enqueue it using wp_enqueue_script hooked admin_enqueue_scripts action. function enqueue_my_ajax( $hook ) { if( ‘post.php’ != $hook && ‘post-new.php’ != $hook ) return; // if you use in theme use … Read more