The second part of GD Press Tools related posts that continues to describe various plugins features. This post will focus on changing the access rights for plugin panels, using provided plugins config files and using plugins posts panel and few other things. This is only part of the plugins features and tools, more posts coming soon.
Using config files
Plugin actually has 2 config files. Main one is config.php, and I don’t recommend modifying it because after each upgrade this file will be reseted to defaults. But, the other file gdpt-config.php is the one we want. All changes we need go into this file. First you need to move gdpt-config.php from wp-content/plugin/gd-press-tools into parent folder: wp-content/plugins. If this file is not there, it will not be used. So, once you copy this file, you can than modify it (modify copied file, not original). This file contains several global constants.
WordPress allows that you move wp-content folder outside of the WordPress folder. When this happens, plugins AJAX features will have problem finding WordPress. In that case, you need to tell plugin where WordPress is. For this you need to set PRESSTOOLS_WPLOAD variable to exact path of WordPress wp-load.php file. So, you need to open gdpt-config.php file, and on line 6 you need to set this:
Example: define(’PRESSTOOLS_WPLOAD’, ‘full/path/to/wp-load.php’);
Other constants in this config file are for setting access rights for some of the plugins panels.
- PRESSTOOLS_ACCESS_LEVEL: this is main constant, and panels visibility depends on this, and only users with level the same or higher as defined in this variable will be able to access all plugins panels. Default this to 10, will allow only main admin account to control the plugin.
- PRESSTOOLS_ACCESS_LEVEL_INFO: this controls visibility of Environment info panel, and default is set to 1.
- PRESSTOOLS_ACCESS_LEVEL_FRONT: this controls plugins front page visibility, default is also 1.
Posts Panel
This panel right now contains 3 tools. First tool is used to close the comments and pings for posts. You choose what to close, and select the date, and all posts older than the selected date will be closed for comments and/or pings.
Revisions tools is simple, and is used to delete all revision for all published posts.
Third tool is rather dangerous because it’s used to delete posts older that selected date. This is useful for blogs that have large number of posts from RSS feeds, and after some time they don’t need all that anymore. After using this tool, there is no going back, so be careful, and backup your database just in case.
New post in the series coming soon.






