How to Clean Open Source PHP Script Comments.

Asked By 0 points N/A Posted on -

I have open source PHP scripts developing ,I want to remove all comments from all pages,that is a difficult job. I tries many macro /methods but fail.

Please let me know if you have any solution to remove all comments easily. comments are like.

 * WordPress Cron Implementation for hosts, which do not offer CRON or for which
 * the user has not set up a CRON job pointing to this file.
 * The HTTP request to this file will not slow down the visitor who happens to
 * visit when the cron job is needed to run.
 * @package WordPress

Please see screenshot in red box.

Answered By 0 points N/A #125518

How to Clean Open Source PHP Script Comments.


I see in this picture, you want to make scripts to run in WordPress. My suggestion is you better use plugins from WordPress' website. But if you want to make script, I can give you some clues about how to clear comment in your WordPress. The simple way to delete comment is via phpmyadmin. Below is MYSQL commands to delete comment from WordPress

To delete pending comments is:

To delete all approved comments is: 

To delete all comments is: 

Base on these clues, I hope you can create your PHP scripts with help of these. If you want to test it, you should back up your database first. 🙂

Login/Register to Answer

Related Questions