SHARE
TWEET

Custom uploader

a guest Aug 3rd, 2012 20 Never
  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. }
RAW Paste Data
Top