Skip to content
ClanbiteDevelopers
GuidesReferenceREST APIReleases
Clanbite.com

Reference

  • Hooks598
  • Functions491
  • Classes133
  • Methods1,439
  • REST API88
  • Blocks58
  • Abilities22
  • Settings12
  • Messages60
  • Components9
  • Database tables20
  • Releases
  1. Home
  2. Reference
  3. Methods
  4. Social_Media_Upload::handle_upload()

Clanbite Social Kit

handle_upload( int $user_id ): array<string, mixed>|\WP_Error

Process $_FILES['file'] for the current user.

public static

Class: Kernowdev\ClanbiteSocialKit\Social\Social_Media_Upload

Parameters

$user_id (int) Required

User ID.

Returns

array<string, mixed>|\WP_Error REST payload or error.

Defined in inc/Social/Social_Media_Upload.php

In this article

  • Parameters
  • Returns
  • View as Markdown
  • Back to top
Generated from the source of every Clanbite release. Something missing or unclear? It is fixed in the code and appears here with the next release.Clanbite.com