Skip to content

Instantly share code, notes, and snippets.

View canerd7u's full-sized avatar
🍋
Here we go again

canerd7u

🍋
Here we go again
View GitHub Profile
[
{
"title": "100",
"symbol": "💯",
"keywords":
"hundred points symbol symbol wow wow win win perfect perfect parties parties"
},
{
"title": "1234",
"symbol": "🔢",
@heiswayi
heiswayi / fm.php
Created October 25, 2017 14:00
Single PHP File Manager Script - Screenshot: https://i.imgur.com/4OtrKUz.png
<?php
/**
* File Manager Script
*/
// Default language ('en' and other from 'filemanager-l10n.php')
$lang = 'en';
// Auth with login/password (set true/false to enable/disable it)
$use_auth = true;
@ahmadawais
ahmadawais / upload-a-file.MD
Created June 18, 2017 11:07 — forked from websupporter/upload-a-file.MD
Upload a file using the WordPress REST API

Upload files

Using the REST API to upload a file to WordPress is quite simple. All you need is to send the file in a POST-Request to the wp/v2/media route.

There are two ways of sending a file. The first method simply sends the file in the body of the request. The following PHP script shows the basic principle: