This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'init', 'child_theme_init' ); | |
function child_theme_init() { | |
add_action( 'storefront_before_content', 'woa_add_full_slider', 5 ); | |
} | |
function woa_add_full_slider() { ?> | |
<div id="slider"> | |
<?php echo do_shortcode("[metaslider id=388 percentwidth=100]"); ?> | |
</div> | |
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require '../src/Instagram.php'; | |
use MetzWeb\Instagram\Instagram; | |
session_start(); | |
if (isset($_SESSION['access_token'])) { | |
// user authentication -> redirect to media | |
header('Location: success.php'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('admin_init', 'add_meta_boxes', 1); | |
function add_meta_boxes() { | |
add_meta_box( 'repeatable-fields', 'Audio Playlist', 'repeatable_meta_box_display', 'post', 'normal', 'high'); | |
} | |
function repeatable_meta_box_display() { | |
global $post; |