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
{ | |
"steps": [ | |
{ | |
"step": "login" | |
}, | |
{ | |
"step": "installTheme", | |
"themeZipFile": { | |
"resource": "wordpress.org/themes", | |
"slug": "pendant" |
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
# Ignore everything in the root except the "wp-content" directory. | |
/* | |
!.gitignore | |
!wp-content/ | |
# Ignore everything in the "wp-content" directory, except the "mu-plugins", "plugins", and "themes" directories. | |
wp-content/* | |
!wp-content/mu-plugins/ | |
!wp-content/plugins/ | |
!wp-content/themes/ |
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
*~ | |
.DS_Store | |
.svn | |
.cvs | |
*.bak | |
*.swp | |
Thumbs.db | |
# wordpress specific | |
wp-config.php |
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
/* Prismatic - Highlight.js Block */ | |
var | |
el = wp.element.createElement, | |
Fragment = wp.element.Fragment, | |
registerBlockType = wp.blocks.registerBlockType, | |
RichText = wp.editor.RichText, | |
PlainText = wp.editor.PlainText, | |
RawHTML = wp.editor.RawHTML, | |
InspectorControls = wp.editor.InspectorControls, |
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
<nav | |
class="elementor-pagination" | |
role="navigation" | |
aria-label="Pagination" | |
> | |
<span class="page-numbers prev">« Previous</span> | |
<span aria-current="page" class="page-numbers current" | |
><span class="elementor-screen-only">Page</span>1</span | |
> | |
<a |
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 | |
/** | |
* Plugin Name: TOPTAL WP-CLI Commands | |
* Version: 0.1 | |
* Plugin URI: https://n8finch.com/ | |
* Description: Some rando wp-cli commands to make life easier... | |
* Author: Nate Finch | |
* Author URI: https://n8finch.com/ | |
* Text Domain: toptal-wpcli | |
* Domain Path: /languages/ |
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
function capital_P_dangit( $text ) { | |
// Simple replacement for titles. | |
$current_filter = current_filter(); | |
if ( 'the_title' === $current_filter || 'wp_title' === $current_filter ) { | |
return str_replace( 'Wordpress', 'WordPress', $text ); | |
} | |
// Still here? Use the more judicious replacement. | |
static $dblq = false; | |
if ( false === $dblq ) { | |
$dblq = _x( '“', 'opening curly double quote' ); |
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
############################# | |
# GIT STUFFS | |
############################# | |
alias gits="git status" | |
alias gita="git add ." | |
alias gitap="git add -p" | |
alias gitco="git checkout" | |
alias gitcop="git checkout @{-1}" | |
alias gitcob="git checkout -b" | |
alias gitmprev="git merge @{-1}" |
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
#!/bin/bash | |
#Double-check you're ready to rock and roll with an update | |
read -r -p "Are you sure you want to update all specified directories? [y/N] " response | |
if [[ "$response" =~ ^([yY][eE][sS]|[yY])$ ]]; then | |
#Set the array of folders | |
DIRECTORIES=( 'wordpress-default' 'wordpress-develop' ); |
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
{ | |
"workbench.startupEditor": "newUntitledFile", | |
"editor.fontSize": 15, | |
"editor.wordWrap": "on", | |
"editor.minimap.enabled": false, | |
"workbench.colorTheme": "Atom One Dark", | |
"workbench.colorCustomizations": { | |
"editor.background": "#000000", | |
"sideBar.background": "#000000", |
NewerOlder