SHARE
TWEET

Untitled

a guest Mar 19th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top