예제 #1
0
파일: image.php 프로젝트: arobbins/sblog
 /**
  * Add custom actions.
  */
 static function add_actions()
 {
     // Do same actions as file field
     parent::add_actions();
     // Reorder images via Ajax
     add_action('wp_ajax_swpmb_reorder_images', array(__CLASS__, 'wp_ajax_reorder_images'));
 }
예제 #2
0
 /**
  * Get uploaded file information.
  *
  * @param int   $file_id Attachment image ID (post ID). Required.
  * @param array $args    Array of arguments (for size).
  * @return array|bool False if file not found. Array of image info on success
  */
 static function file_info($file_id, $args = array())
 {
     return SWPMB_File_Field::file_info($file_id, $args);
 }