Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Custom uploader

By: a guest on Aug 3rd, 2012  |  syntax: None  |  size: 0.21 KB  |  views: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. function disable_image_tabs( $tabs ) {
  2.         unset(
  3.                 $tabs['type_url'],
  4.                 $tabs['gallery']
  5.         );
  6.  
  7.     return $tabs;
  8. }
  9.  
  10. if ( isset( $_REQUEST['context'] ) && 'custom_uploader' == $_REQUEST['context'] ) {
  11.         //filters
  12. }