Skip to content

Instantly share code, notes, and snippets.

Chris Wilcoxson slushman

Block or report user

Report or block slushman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View dashicon-js-array-alphabetical
export default [
{ value: 'admin-appearance', label: 'Admin Appearance' },
{ value: 'admin-collapse', label: 'Admin Collapse' },
{ value: 'admin-comments', label: 'Admin Comments' },
{ value: 'admin-generic', label: 'Admin Generic' },
{ value: 'admin-home', label: 'Admin Home' },
{ value: 'admin-links', label: 'Admin Links' },
{ value: 'admin-media', label: 'Admin Media' },
{ value: 'admin-network', label: 'Admin Network' },
{ value: 'admin-page', label: 'Admin Page' },
@slushman
slushman / dashicons-js-array
Last active Oct 29, 2018
Javascript array of Dashicons.
View dashicons-js-array
const dashIcons = [
{ value: 'menu', label: 'Menu' },
{ value: 'dashboard', label: 'Dashboard' },
{ value: 'admin-site', label: 'Admin Site' },
{ value: 'admin-media', label: 'Admin Media' },
{ value: 'admin-page', label: 'Admin Page' },
{ value: 'admin-comments', label: 'Admin Comments' },
{ value: 'admin-appearance', label: 'Admin Appearance' },
{ value: 'admin-plugins', label: 'Admin Plugins' },
{ value: 'admin-users', label: 'Admin Users' },
@slushman
slushman / wp_auto_install.sh
Last active Dec 14, 2018 — forked from nicomollet/wp_auto_install.sh
WP-CLI auto install local development site script
View wp_auto_install.sh
#!/bin/bash
# Get the required project variables
printf "Project name: "
read PROJECT_NAME
printf "Project folder name: "
read PROJECT_FOLDER
printf "Database Name: "
@slushman
slushman / Parker Results Cheatsheet.md
Last active Oct 20, 2016
Cheatsheet for the results from Parker.
View Parker Results Cheatsheet.md
  • Total Stylesheets
    • The quantity of stylesheets it examined.
  • Total Stylesheet Size
    • Size in bytes of the stylesheet(s)
    • Ideal: no real ideal, but smaller is better.
  • Total Rules
    • The quantity of CSS rules in the stylesheet(s).
    • Ideal: no real ideal, but a smaller number here means a simpler stylesheet.
  • Total Selectors
    • The quantity of selectors in the stylesheet(s).
@slushman
slushman / formidable-forms-select.php
Created Jul 18, 2016
WordPress Customizer select control with published Formidable forms.
View formidable-forms-select.php
$forms = FrmForm::get_published_forms();
$choices = array();
foreach ( $forms as $form ) {
$choices[$form->id] = $form->name;
}
// Formidable Forms Select Field
@slushman
slushman / customizer-links.php
Last active Aug 18, 2019
How to link into the WordPress Customizer
View customizer-links.php
@slushman
slushman / themes-security-config.md
Created May 2, 2016
iThemes Security Configuration
View themes-security-config.md

Table of Contents

  • Settings
    • [Global] (#global)
    • [404 Detection] (#404)
    • [Away Mode] (#away)
    • [Banned Users] (#banned)
    • [Brute Force Protection] (#brute)
    • [Backup DB] (#backupdb)
    • [File Change Detection] (#files)
    • [Hide Login] (#hidelogin)
@slushman
slushman / htaccess.txt
Last active Mar 21, 2018
htaccess for WordPress sites on SiteGround
View htaccess.txt
# # WEB PERFORMANCE
# Remove `ETags` as resources are sent with far-future expires headers.
# `FileETag None` doesn't work in all cases.
<IfModule mod_headers.c>
Header unset ETag
</IfModule>
FileETag None
View Get Posts From a Category
$homeposts = yourtheme_get_posts( 'post', array( 'category_name' => 'name_of_the_category', 'posts_per_page' => 1 ), 'homepage' );
foreach ( $homeposts->posts as $homepost ) {
// process each post here
}
/**
* Returns a post object of the requested post type
@slushman
slushman / Sublime Text Packages
Created Jan 13, 2016
List of Package for Sublime Text 3
View Sublime Text Packages
Package Control - https://packagecontrol.io/installation
Tomorrow Color Schemes
You can’t perform that action at this time.