Open ~/.bash_profile in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {| <?php | |
| /** | |
| * Hide editor on specific pages. | |
| * | |
| */ | |
| add_action( 'admin_init', 'hide_editor' ); | |
| function hide_editor() { | |
| // Get the Post ID. |
| /* | |
| Before using make sure you have: | |
| npm install --save-dev gulp gulp-minify-css gulp-concat gulp-uglify gulp-autoprefixer gulp-sass | |
| Make sure to change the directory names in the default watch function to the CSS/SCSS/SASS directories you are using so it reloads | |
| */ | |
| var gulp = require('gulp'), | |
| minifyCSS = require('gulp-minify-css'), | |
| concat = require('gulp-concat') |
| --- | |
| - name: Sync uploads between environments | |
| hosts: web | |
| remote_user: "{{ web_user }}" | |
| vars: | |
| project: "{{ wordpress_sites[site] }}" | |
| project_root: "{{ www_root }}/{{ site }}" | |
| tasks: |
| <?php | |
| /** | |
| * Plugin Name: WP Slack REST API Backend | |
| * Description: An example of using the WordPress REST API as a backend for a Slack Bot | |
| * Author: Andy Brudtkuhl | |
| * Author URI: http://youmetandy.com | |
| * Version: 0.1 | |
| * Plugin URI: https://github.com/abrudtkuhl/heykramer | |
| * License: GPL2+ |
| { | |
| "name": "webpack-sass", | |
| "version": "1.0.0", | |
| "scripts": { | |
| "start": "webpack-dev-server --open --mode development", | |
| "build": "webpack -p" | |
| }, | |
| "devDependencies": { | |
| "babel-core": "^6.26.0", | |
| "babel-loader": "^7.1.4", |
| function my_custom_icons( $sets ) { | |
| $path = get_stylesheet_directory() . '/my-custom-icons/'; | |
| $url = get_stylesheet_directory_uri() . '/my-custom-icons/'; | |
| $data = json_decode( file_get_contents( $path . 'selection.json' ) ); | |
| $icons = array(); | |
| foreach ( $data->icons as $icon ) { | |
| $prefs = $data->preferences->fontPref; |
| add_filter( 'gform_ip_address', '__return_empty_string' ); |
| **/*.min.js | |
| **/*.build.js | |
| **/node_modules/** | |
| **/vendor/** | |
| build | |
| coverage | |
| cypress | |
| node_modules | |
| vendor |