- Design
- Colors
- Images
- Navigation
- Content
- Hosting Setup
- WordPress Config
- Setup dccadmin user
- Configure WP
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
"Accessibility is the degree to which a product, device, service, or environment is available to as many people as possible." - Cynthia Waddell | |
Four major disabilities addressed by a11y: | |
* Cognitive | |
* Write at a low reading level | |
* Make interactivity obvious, clear buttons, etc | |
* Vision | |
* Blind | |
* Colorblind |
This file contains 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
/** | |
* The simplistic way to add a custom class to a specific metabox | |
* | |
* @param array $classes The current classes on the metabox | |
* @return array The modified classes on the metabox | |
*/ | |
function add_metabox_classes( $classes = array() ) { | |
return array_push( $classes, sanitize_html_class( 'my-custom-class' ) ); |
This file contains 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
/** | |
* Do this | |
*/ | |
if ( '' == get_theme_mod( 'something' ) ) { ... } | |
/** | |
* Not this | |
*/ | |
if ( empty( get_theme_mod( 'something' ) ) ) { ... } |
This file contains 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
/** | |
* Returns the requested SVG icon. | |
* | |
* Returns FALSE if $svg is not set. | |
* | |
* @param string $svg The name of the SVG icon | |
* @return mixed The SVG icon | |
*/ | |
function prefix_get_svg( $svg ) { |
This file contains 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
/** | |
* $tag The WordPress action you want to hook onto. This is required. | |
* $function_to_add Your function to hook onto the WordPress action. This is required. | |
* $priority Determines the importance of your function; 10 is the default. This is optional. | |
* Higher number equal lower priority | |
* Lower number equals higher priority | |
* $accepted_args Sets how many arguments can be passed on to your function. This is optional. | |
*/ | |
<?php add_action( $tag, $function_to_add, $priority, $accepted_args ); ?> |
This file contains 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
/* | |
Add this line to your wp-config.php file. I put it right above the "Authentication Unique Keys and Salts." comment block. | |
*/ | |
/** Disable the WP Admin Bar */ | |
define('BP_DISABLE_ADMIN_BAR', true); |
This file contains 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
/** | |
* Returns a list of user IDs matching the metavalue | |
* @param string $metakey The metadata key | |
* @param string $metavalue The value to find | |
* @return array|bool An array of user IDs or false | |
*/ | |
function get_user_by_metadata( $metakey, $metavalue ) { | |
$return = array(); | |