/** * 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')); }
/** * 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); }