HI @devworlds,
If you want to remove the scripts related to dokan_pageview, the pageview feature will no longer work on your site. If you want to proceed with that, please try adding the below-mentioned code to your child theme’s functions.php or use a code snippet plugin like this one.
remove_action( 'wp_ajax_dokan_pageview', dokan()->pageview->update_ajax() );
remove_action( 'wp_ajax_nopriv_dokan_pageview', dokan()->pageview->update_ajax() );
I hope it helps. Thanks!
Hi,
After i add this getting critical error on site.
thank you
Hi there,
I am really sorry to hear that. Please try the below-mentioned code.
add_action( 'init', function () {
remove_action( 'wp_ajax_dokan_pageview', dokan()->pageview->update_ajax() );
remove_action( 'wp_ajax_nopriv_dokan_pageview', dokan()->pageview->update_ajax() );
}, 99 );
Hi,
Sorry still not fix.
after i applied this code. showing -1 on browser window.
here is snapshot– https://imgur.com/nuLGEpN
thank you
Hi @devworlds
We apologize for the inconvenience you’re experiencing, and we regret that the provided solution did not yield the expected results.
At this point, it seems that resolving your issue may require more in-depth and customized assistance. Unfortunately, we currently do not have an alternative solution readily available.
To address your specific requirements, we recommend consulting with a WordPress customization expert or developer. They can provide tailored assistance and implement a solution that aligns with your needs.
We appreciate your understanding and patience.
Thanks!
Hi @devworlds
As we haven’t heard back from you for a while, we’ll consider this topic resolved. If you encounter any further issues, please don’t hesitate to open a new topic.
Thanks!