Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. add_action('wp_ajax_edit-theme-plugin-file', 'log_cowboy_coders');
  2.  
  3. function log_cowboy_coders() {
  4. $user = get_current_user_id();
  5. if (!empty($__POST['theme'])) {
  6. // Log that someone is editing a theme
  7. } else if (!empty($__POST['plugin'])) {
  8. //log that someone is editing a plugin
  9. }
  10. if (!empty($__POST['file'])) {
  11. //log what file they are editing
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement