Skip to content

Instantly share code, notes, and snippets.

@C-Dark
C-Dark / follower.json
Created August 25, 2016 21:06 — forked from cosenary/follower.json
Instagram display user follower example.Simply replace the success.php file in the example folder by this one and fill in your API credentials.
{
"username": "moo",
"bio": "We print things.",
"website": "http://www.moo.com",
"profile_picture": "http://images.ak.instagram.com/profiles/profile_7927894_75sq_1378988556.jpg",
"full_name": "MOO Print",
"id": 7927894
}
@C-Dark
C-Dark / maybe-include-plugin.php
Created November 25, 2015 08:28 — forked from alexkingorg/maybe-include-plugin.php
Conditional loading of a plugin within a WordPress theme.
<?php
// Run this code on 'after_theme_setup', when plugins have already been loaded.
add_action('after_setup_theme', 'my_load_plugin');
// This function loads the plugin.
function my_load_plugin() {
// Check to see if your plugin has already been loaded. This can be done in several
// ways - here are a few examples: