eventsmanager

Remove duplicate event link

Feb 3rd, 2014
249
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×