daily pastebin goal
11%
SHARE
TWEET

Remove duplicate event link

eventsmanager Feb 3rd, 2014 168 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. This snippet will remove duplicate functions in admin-dashboard
  3. */
  4.  
  5. function my_em_remove_duplicate_post($actions, $post){
  6.  
  7.   unset($actions['duplicate']);
  8.  
  9.   return $actions;
  10. }
  11. add_filter('post_row_actions', 'my_em_remove_duplicate_post', 100, 2);
  12.  
  13.  
  14. function my_em_remove_duplicate_page($actions, $post){
  15.  
  16.   unset($actions['duplicate']);
  17.  
  18.   return $actions;
  19. }
  20. add_filter('page_row_actions', 'my_em_remove_duplicate_page', 100, 2);
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
 
Top