Changeset 1403019
- Timestamp:
- 04/23/2016 06:24:37 PM (10 years ago)
- File:
-
- 1 edited
-
remove-all-comments/trunk/remove-all-comments.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
remove-all-comments/trunk/remove-all-comments.php
r1403009 r1403019 1 <?php 2 /* *3 *Plugin Name: Remove All Comments4 *Plugin URI: http://wordpress.org/plugins/remove-all-comments/5 *Description: This plugin remove all comments from your current wordpress site.when Plugine is active its remove all comments for all user.you can also remove comments from specific post type.6 *Version: 2.07 *Requires at least: 3.0.18 *Tested up to: 4.59 *Author: php-developer10 *Author URI: https://profiles.wordpress.org/php-developer-111 *Contributors: php-developer12 *Tags: comments, spam, delete comments,delete all comments, remove comments, no comments, spam free comments, comments less, remove all comments, auto remove comments13 *Network: false14 *License: GPLv2 or later15 *License URI: http://www.gnu.org/licenses/gpl-2.0.html1 <?php 2 /* 3 Plugin Name: Remove All Comments 4 Plugin URI: http://wordpress.org/plugins/remove-all-comments/ 5 Description: This plugin remove all comments from your current wordpress site.when Plugine is active its remove all comments for all user.you can also remove comments from specific post type. 6 Version: 2.0 7 Requires at least: 3.0.1 8 Tested up to: 4.5 9 Author: php-developer 10 Author URI: https://profiles.wordpress.org/php-developer-1 11 Contributors: php-developer 12 Tags: comments, spam, delete comments,delete all comments, remove comments, no comments, spam free comments, comments less, remove all comments, auto remove comments 13 Network: false 14 License: GPLv2 or later 15 License URI: http://www.gnu.org/licenses/gpl-2.0.html 16 16 */ 17 18 17 // create custom plugin settings menu 19 18 add_action('admin_menu', 'remove_all_comments'); 20 21 19 function remove_all_comments() { 22 23 20 //create new top-level menu 24 21 add_menu_page('Remove All Comments Plugin Settings', 'Remove All Comments ', 'administrator', __FILE__, 'admin_form_remove_all_comments',plugins_url('/images/icon.png', __FILE__)); 25 26 22 //call register settings function 27 23 add_action( 'admin_init', 'remove_all_comments_mysettings' ); 28 24 } 29 30 25 function remove_all_comments_mysettings() { 31 26 //register our settings … … 35 30 } 36 31 ///////////////// function for display admin side settings 37 function admin_form_remove_all_comments() { 38 39 ?> 40 <div class="wrap"> 32 function admin_form_remove_all_comments() { ?> <div class="wrap"> 41 33 <h2><?php _e('Remove All Comments Plugin Settings') ?> </h2> 42 34 <?php … … 132 124 </div> 133 125 <?php } 134 135 126 function removeCommentsFromSite($post_type=null) 136 127 { … … 147 138 } 148 139 } 149 } 150 140 } 151 141 function removeAllCustomComments() { 152 142 … … 182 172 delete_option( 'remove_all_is_post' ); 183 173 delete_option( 'remove_all_is_all' ); 184 } 185 186 187 188 function my_admin_notice_reovellAllComments(){ 189 190 //print_r(); 174 } 175 function my_admin_notice_reovellAllComments(){ 176 //print_r(); 191 177 $msg = 'Removell All Comments Settings Saved.'; 192 178 if (isset($_REQUEST['settings-updated']) && $_REQUEST['settings-updated'] ) { … … 197 183 } 198 184 add_action('admin_notices', 'my_admin_notice_reovellAllComments'); 199 200 185 function my_admin_note_reovellAllComments(){ 201 186 … … 204 189 <p><strong>'.$msg1.'</strong></p> 205 190 </div>'; 206 }?> 191 }?>
Note: See TracChangeset
for help on using the changeset viewer.