Skip to content

Instantly share code, notes, and snippets.

Jarah inquota

Block or report user

Report or block inquota

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View app.js
angular.module('tyru', ['treeControl'])
.controller('MainCtrl', ['$http', '$timeout', function ($http, $timeout) {
var ctrl = this;
ctrl.loadingTime = 1500;
ctrl.treeModel = [];
ctrl.treeOptions = {
dirSelectable: false, // Click a folder name to expand (not select)
isLeaf: function isLeafFn(node) {
m1r0 / wp_insert_attachment_from_url.php
Last active Nov 30, 2019
WP: Insert attachment from URL
View wp_insert_attachment_from_url.php
* Insert an attachment from an URL address.
* @param String $url
* @param Int $parent_post_id
* @return Int Attachment ID
function crb_insert_attachment_from_url($url, $parent_post_id = null) {
You can’t perform that action at this time.