Skip to content

Instantly share code, notes, and snippets.

View ControlledChaos's full-sized avatar

Controlled Chaos Design ControlledChaos

View GitHub Profile

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@ControlledChaos
ControlledChaos / README.md
Last active August 8, 2016 20:36 — forked from r-a-y/gist:5578432
Disables the BuddyPress registration process and fall back to the WordPress form.

Replace BuddyPress Registration

WordPress Snippet

// http://support.advancedcustomfields.com/forums/topic/change-menu-position-of-options-page/
acf_add_options_page( array(
'page_title' => 'Home Page Sliders',
'menu_title' => 'Sliders',
'menu_slug' => 'home-page-sliders',
'capability' => 'edit_posts',
'icon_url' => 'dashicons-images-alt2',
'position' => 7
@ControlledChaos
ControlledChaos / README.md
Last active February 7, 2023 14:16 — forked from JiveDig/acf_image_local_avatar.php
Use a local avatar with Advanced Custom Fields image field.

ACF Local Avatar

WordPress Snippet

@ControlledChaos
ControlledChaos / installed-plugin-details.php
Last active September 15, 2015 21:10 — forked from bradyvercher/installed-plugin-details.php
WordPress Plugin: Show a "Details" link for installed plugins to view information from the WordPress.org plugin directory.
<?php
/**
* Plugin Name: Installed Plugin Details
* Description: Show a "Details" link for installed plugins to view information from the WordPress.org plugin directory.
* Version: 1.0.0
* Author: Blazer Six
* Author URI: http://www.blazersix.com/
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*
@ControlledChaos
ControlledChaos / README.md
Last active March 28, 2016 18:54 — forked from bryanwillis/acf-field-snitch-v5.js
Fix for advanced-custom-field "Fields Snitch" plugin to work with version 5 of ACF

Fix ACF "Fields Snitch" plugin

WordPress Snippet

@ControlledChaos
ControlledChaos / wordpress-plugin-bootstrap.php
Created April 20, 2016 18:58 — forked from tommcfarlin/wordpress-plugin-bootstrap.php
[WordPress] A template for the WordPress plugin bootstrap file to be used when creating WordPress plugins.
<?php
/**
* The plugin bootstrap file
*
* This file is read by WordPress to generate the plugin information in the plugin
* admin area. This file also includes all of the dependencies used by the plugin,
* registers the activation and deactivation functions, and defines a function
* that starts the plugin.
*
* @link URL to plugin homepage
@ControlledChaos
ControlledChaos / README.md
Last active September 21, 2023 05:54 — forked from saas786/sanitize_checkbox.php
Sanitization of WordPress Customizer controls

Sanitize the WordPress Customizer

WordPress Snippets

@ControlledChaos
ControlledChaos / DNS prefetching
Created October 24, 2016 21:50
Common Prefetch Links
<!-- Amazon S3 -->
<link rel="dns-prefetch" href="//s3.amazonaws.com">
<!-- Google CDN -->
<link rel="dns-prefetch" href="//ajax.googleapis.com">
<!-- Microsoft CDN -->
<link rel="dns-prefetch" href="//ajax.microsoft.com">
<link rel="dns-prefetch" href="//ajax.aspnetcdn.com">
@ControlledChaos
ControlledChaos / README.md
Last active January 21, 2017 17:04 — forked from yassiryahya/functions.php
Assigning Role On Wordpress Registration & Profile Page