Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action('wp_ajax_edit-theme-plugin-file', 'log_cowboy_coders');
- function log_cowboy_coders() {
- $user = get_current_user_id();
- if (!empty($__POST['theme'])) {
- // Log that someone is editing a theme
- } else if (!empty($__POST['plugin'])) {
- //log that someone is editing a plugin
- }
- if (!empty($__POST['file'])) {
- //log what file they are editing
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement