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 | |
/**** | |
* | |
* Restore Gravity Forms Entry Author from "No Author" | |
* | |
* GravityViews plugin adds a helpful 'Change Entry Creator' dropdown to the Entry Editor Admin page for Gravity Forms. | |
* Unfortunately, if there are too many users on the site, the dropdown defaults to " - No User - ", disassociating | |
* the original entry creator upon Entry Update. When the Entry Creator is changed, a note is stored that states | |
* "Changed entry creator from [NAME] (ID #[###]) to No User". This function selects notes with such language, isolates |
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 | |
// Get the current date array | $thedate[0] contains the unix timestamp | |
$thedate = getdate(); | |
// Make a date object using pretty much any human redable date/time | |
$date_object = strtotime(9-5-1985 1:00 AM); | |
// Format the date object | |
$date_formatted = date('Y-m-d', $date_object); |
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
// Bring in the resources // | |
<link rel="stylesheet" href="//cdn.jsdelivr.net/jquery.sidr/2.2.1/stylesheets/jquery.sidr.bare.css"> | |
<script src="//cdn.jsdelivr.net/jquery.sidr/2.2.1/jquery.sidr.min.js"></script> | |
// Make the '60%' Sidr and style it // | |
<style> | |
.hide-on-desktop { display: none; } | |
.sidr.left { width: 60%; } | |
.sidr.left { left: -60%; } | |
.sidr.left { padding: 5%; background: rgba(0, 128, 176, 0.08); border-style: ridge; border-width: 0px 2px 0px 0px; border-color: #127ba3; } |
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 | |
// WooCommerce Add Custom Checkout Fields | |
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); | |
function custom_override_checkout_fields( $fields ) { | |
// append to the billing questions | |
// we output a 'header' with CSS:before | |
$fields['billing']['custom_question_slug'] = array( | |
'type' => 'text', |
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 | |
/* * | |
* Simple PayPal Button Shortcode | |
* @Jryven boilingpotmeida.com | |
* | |
* Use: | |
* Get a PayPal provided donation button. | |
* Find the line: <input type="hidden" name="hosted_button_id" value="**************"> | |
* Enter the code within the value parameter into the shortcode via the id parameter | |
* Enter the text for the button into the shortcode via the text parameter |
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 | |
// | |
// | |
// | |
// | |
// | |
// | |
global $vimeo_ids; |
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 | |
//BUILD LOGIN | |
function bpm_custom_login_shortcode( $atts, $content = null ) { | |
if( ! is_user_logged_in() ) : | |
$a = shortcode_atts( array( | |
'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], |
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 detect_browser() { | |
$arr_browsers = ["Opera", "Edge", "Chrome", "Safari", "Firefox", "MSIE", "Trident"]; | |
$agent = $_SERVER['HTTP_USER_AGENT']; | |
$user_browser = ''; | |
foreach ($arr_browsers as $browser) { | |
if (strpos($agent, $browser) !== false) { | |
$user_browser = $browser; | |
break; |
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
<script> | |
jQuery(document).ready(function($) { | |
// Set all Elms to Height of Tallest | |
function setEqualHeight(e) { | |
var t = 0; | |
e.each(function(){ | |
currentHeight = $(this).height(); | |
if (currentHeight > t) { | |
t = currentHeight | |
} |
OlderNewer