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
# wp-cli | |
complete -c wp -l cache --description 'Manage the object cache.' | |
complete -c wp -l cap --description 'Manage user capabilities.' | |
complete -c wp -l cli --description 'Get information about WP-CLI itself.' | |
complete -c wp -l comment --description 'Manage comments.' | |
complete -c wp -l core --description 'Download, install, update and otherwise manage WordPress proper.' | |
complete -c wp -l cron --description 'Manage WP-Cron events and schedules.' | |
complete -c wp -l db --description 'Perform basic database operations.' | |
complete -c wp -l eval --description 'Execute arbitrary PHP code.' | |
complete -c wp -l eval-file --description 'Load and execute a PHP file.' |
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
<?php | |
// Please see https://github.com/Lewiscowles1986/WordPressSVGPlugin from now on |
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
//========================================================== CUSTOM MENU WALKER - remove list stuff, only links | |
class custom_menu_walker_remove_list extends Walker_Nav_Menu { | |
function start_el(&$output, $item, $depth, $args) { | |
global $wp_query; | |
$class_names = $value = ''; | |
$classes = empty( $item->classes ) ? array() : (array) $item->classes; | |
$classes[] = 'menu-item-' . $item->ID; | |
$class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ) ); | |
$class_names = ' class="' . esc_attr( $class_names ) . '"'; | |
$id = apply_filters( 'nav_menu_item_id', 'menu-item-'. $item->ID, $item, $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
require 'formula' | |
class Tar <Formula | |
url 'http://ftp.gnu.org/gnu/tar/tar-1.26.tar.gz' | |
homepage 'http://www.gnu.org/software/tar/' | |
md5 '00d1e769c6af702c542cca54b728920d' | |
# depends_on 'cmake' | |
def install |
NewerOlder