Skip to content

Instantly share code, notes, and snippets.

@bryanwillis
bryanwillis / disable_dash.php
Created December 12, 2013 00:40
Different ways to remove wp dashboard widgets. I think disable_dash.php is considered the best method.
//* REMOVE DASHBOARD WELCOME
remove_action('welcome_panel', 'wp_welcome_panel');
// */
//* REMOVE ADMIN DASHBOARD WIDGETS
// Create the function to use in the action hook
function remove_default_dashboard_widgets() {
@bryanwillis
bryanwillis / studio-t-measure-formula-history.php
Created March 2, 2024 16:44
Code to add measurement and formula history
<?php
/** Studio T Formula History and Measurement History **/
function bw_custom_user_profile_fields( $user ) {
echo '<h3 class="heading">Salon Customer Data</h3>';
?>
<table class="form-table">
<tr>
<th><label for="_sln_bformula">Formula History</label></th>
<td>
/*-----------------------------------------------------------------------------
- Revolution Slider 4.1 Captions -
Screen Stylesheet
version: 1.4.5
date: 27/11/13
author: themepunch
@bryanwillis
bryanwillis / great-lakes-golf-shootout.markdown
Created November 1, 2023 23:34
Great Lakes Golf Shootout
<?php
// This will need to use code/variables from here...
// https://gist.github.com/bryanwillis/5c1c4f5ce5a4294ea35c689e3c975a78#file-results-php-L230-L274
// Map Marker positioned above numbers
$result .= '<div class="steps-container">';
// Line with numbers
$result .= '<img src="https://assessment.globalcoachcenter.com/you.png" class="mapmark ' . $total_0 . $total_1 . $total_2 . $total_3 . $total_4 . $total_5 . '"><div class="line"></div>';
@bryanwillis
bryanwillis / cornell-and-associates-payments.markdown
Created March 7, 2023 15:02
Cornell and Associates - Payments
genesis_attr_head
genesis_attributes_head (genesis_attributes_head)
genesis_attr_body
genesis_attributes_body (genesis_attributes_body)
genesis_attr_site-header
function fillFormEmail(){
const input = document.getElementById('team_name-866'); // replace 'id' with id of email field
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString); //parse the query string
const teamname = urlParams.get('team'); // Store the parsed email address in variable
input.value = teamname; // fill the form with the email address
}
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html class="wp-toolbar"
lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Edit Page &lsaquo; Candid Solutions &#8212; WordPress</title>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!=='undefined')jQuery(document).ready(func);else if(typeof wpOnload!=='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '/wp-admin/admin-ajax.php',
/********************************************
- THEMEPUNCH TOOLS Ver. 1.0 -
Last Update of Tools 27.02.2015
*********************************************/
/*
* @fileOverview TouchSwipe - jQuery Plugin
* @version 1.6.9
*