add_action('admin_enqueue_scripts','tasks_js_file_func');
Try with this action called admin_enqueue_scripts
It’ll enqueue your js file inside of the WordPress admin area.
add_action('admin_enqueue_scripts','tasks_js_file_func');
Try with this action called admin_enqueue_scripts
It’ll enqueue your js file inside of the WordPress admin area.