This file contains hidden or 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
$gravity_form_id = 6; // gravity form id, or replace {$gravity_form_id} below with this number | |
add_filter("gform_after_submission_{$gravity_form_id}", 'jdn_set_post_acf_gallery_field', 10, 2); | |
function jdn_set_post_acf_gallery_field($entry, $form) | |
{ | |
$gf_images_field_id = 42; // the upload field id | |
$acf_field_id = 'field_54804833b3067'; // the acf gallery field id | |
// get post |
This file contains hidden or 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
document.cookie="VISITOR_INFO1_LIVE=oKckVSqvaGw; path=/; domain=.youtube.com";window.location.reload(); |
This file contains hidden or 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
# Deny Pagespeed form accessing jquery. This fucks things up. | |
ModPagespeedDisallow "*/jquery.js" |
This file contains hidden or 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 | |
function ajax_function_for_doing_something(){ | |
echo 'This is AJAX!'; | |
die(); // All ajax functions MUST die. otherwise they never give results back | |
} | |
// Add the ajax hooks for when you're logged in | |
add_action( 'wp_ajax_DO_SOMETHING', 'ajax_function_for_doing_something' ); | |
// Add the ajax hooks for front end when not logged in |
This file contains hidden or 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 | |
/* | |
Plugin Name: Stop touching my files | |
Plugin URI: http://eyeversuseye.com | |
Description: This stops you touching my files. I'm sick of you doing it. SICK OF IT! | |
Author: Andrew Lazarus | |
Version: Unlimited. | |
Author URI: http://eyeversuseye.com | |
Notes: Stop touching my files and then |
This file contains hidden or 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
# Installing Wordpress with CLI | |
cd your/website/folder | |
# Download Wordpress | |
wp core download | |
# setup the cofig with database, user and pass | |
wp core config --dbname="DATABASE" --dbuser="root" --dbpass="root" | |
# install wordpress with URL, NAME, USERNAME and PASSWORD | |
wp core install --url="WORDPRESS_URL" --title="WORDPRESS_NAME" --admin_user="Full Phat Design" --admin_password="Full Phat Design" --admin_email="[email protected]" | |
# Install woocommerce, yoast and meat theme | |
wp plugin install woocommerce --activate |
This file contains hidden or 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
// Notifications – LOL | |
window.addEventListener('load', function () { | |
// At first, let's check if we have permission for notification | |
// If not, let's ask for it | |
if (window.Notification && Notification.permission !== "granted") { | |
Notification.requestPermission(function (status) { | |
if (Notification.permission !== status) { | |
Notification.permission = status; | |
} | |
}); |
This file contains hidden or 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 | |
/* Parse the video uri/url to determine the video type/source and the video id */ | |
function parse_video_uri( $url ) { | |
// Parse the url | |
$parse = parse_url( $url ); | |
// Set blank variables | |
$video_type = ''; | |
$video_id = ''; |
This file contains hidden or 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
<div class="container"> | |
<div class="content"> | |
<!-- Any amount of content here --> | |
</div> | |
<footer> | |
<!-- This will always be in the footer now. --> | |
</footer> | |
</div> |