[ONE LINE DESCRIPTION OF PROJECT]
[A PARAGRAPH DESCRIBING WHY YOU BUILT THIS]
[ANOTHER PARAGRAPH DESCRIBING YOUR IMPETUS FOR RELEASING THIS]
| <?php | |
| use PhpCsFixer\Config; | |
| use PhpCsFixer\Finder; | |
| $rules = [ | |
| 'array_indentation' => true, | |
| 'array_syntax' => ['syntax' => 'short'], | |
| 'binary_operator_spaces' => [ | |
| 'default' => 'single_space', |
| <?php | |
| add_filter( 'get_user_option_admin_color', function( $color_scheme ) { | |
| global $_wp_admin_css_colors; | |
| if ( ! isset( $_wp_admin_css_colors[ $color_scheme ] ) ) { | |
| $color_scheme = 'ectoplasm'; | |
| } |
| <?php | |
| /* | |
| These are some example files for CakePHP 2.x | |
| Using containable | |
| The problem with this is that if Group doens't match, then it will just return a blank array | |
| dimension, because containable is just going to join the arrays in php | |
| */ |
| #!/usr/bin/env ruby | |
| require 'faraday' | |
| require 'json' | |
| require 'gitlab' | |
| module Redmine | |
| Host = nil | |
| APIKey = nil |
| <?php /* | |
| * Function similar to wp_link_pages but outputs an ordered list instead and adds a class of current to the current page | |
| */ | |
| function pico_link_pages( $args = '' ) { | |
| $defaults = array( | |
| 'before' => '<p>' . __( 'Pages:' ), 'after' => '</p>', | |
| 'link_before' => '', 'link_after' => '', | |
| 'next_or_number' => 'number', 'nextpagelink' => __( 'Next page' ), | |
| 'previouspagelink' => __( 'Previous page' ), 'pagelink' => '%', |
| /** | |
| * Manipulate default state and countries | |
| * | |
| * As always, code goes in your theme functions.php file | |
| */ | |
| add_filter( 'default_checkout_country', 'change_default_checkout_country' ); | |
| add_filter( 'default_checkout_state', 'change_default_checkout_state' ); | |
| function change_default_checkout_country() { | |
| return 'XX'; // country code |
| add_filter('woocommerce_checkout_fields', 'custom_woocommerce_checkout_fields'); | |
| function custom_woocommerce_checkout_fields( $fields ) { | |
| $fields['order']['order_comments']['placeholder'] = 'Your custom placeholder'; | |
| return $fields; | |
| } |