Skip to content

Instantly share code, notes, and snippets.

View johnheimkes's full-sized avatar
🤝
Looking for work!

John Heimkes IV johnheimkes

🤝
Looking for work!
  • Minneapolis, MN
View GitHub Profile
@johnheimkes
johnheimkes / functions.php
Last active February 20, 2019 19:00 — forked from mustardBees/functions.php
Add &rel=0 to Youtube oembed videos
<?php
/**
* Filter YouTube oEmbed to include '&rel=0' to force channel related videos
* once video is complete, rather than showing user related videos.
*
* @param $html
* @param $url
* @param $args
*
* @return mixed
# Do the following command
# Ref: http://soderlind.no/archives/2011/08/26/running-wordpress-locally-on-mac-os-x-lion/
# Chown / Chmod site directory
$ sudo chown -R :_www [site_directory]
$ sudo chmod -R g+w [site_directory]
# Add to "wp-config.php"
define('FS_METHOD', 'direct');
<?php
/**
* My Project
*
* @package MyProject
* @subpackage JesGs_Walker_Category
* @author Jess Green <[email protected]>
* @version $Id$
*/