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
/** | |
* Change the title placeholder text | |
*/ | |
function my_plugin_change_default_title( $title, $post ){ | |
if ( 'posttype' == $post->post_type ) { | |
$title = 'Enter new title here'; | |
} | |
return $title; | |
} |
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
UPDATE wp_x_options | |
SET option_value = REPLACE(option_value, 'old.domain.com', 'new.domain.com') | |
WHERE option_name = 'siteurl' | |
OR option_name = 'home' | |
OR option_name = 'fileupload_url'; |
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
/** | |
* Setup last page context. | |
*/ | |
session_start(); | |
function my_theme_php_shutdown() { | |
$_SESSION['my_theme_from_search'] = is_search(); | |
} | |
add_action( 'shutdown', 'my_theme_php_shutdown' ); | |
/** |
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: Reposition New Blog Templates | |
Description: Move New Blog Template selection to a different Gravity Form page. | |
Author: Mike Manger | |
Author URI: | |
*/ | |
function mm_rnbt_get_form_filter( $form_html, $form ) { | |
// Let's check if the option for New Blog Templates is activated in this form |
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 function for branches | |
git() { if [[ $@ == "branches" ]]; then command git branch | more; else command git "$@"; fi; } |
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 CapturePlusLoaded(control) { | |
// Search results | |
control.listen('populate', function(control, address, variations) { | |
// Code here | |
}); | |
// Error results | |
control.listen('error', function(control, error) { | |
// Code here |
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
// ==UserScript== | |
// @name Indie Royale Bundle Labeler | |
// @include http://www.indieroyale.com/collection | |
// @updateURL https://gist.githubusercontent.com/ohmanger/ca837343473033b1d9bb/raw | |
// @downloadURL https://gist.githubusercontent.com/ohmanger/ca837343473033b1d9bb/raw | |
// @grant none | |
// @version 1.3.1 | |
// ==/UserScript== | |
function irbl_add_global_styles() { |
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
// ==UserScript== | |
// @name Desura Game Labeler | |
// @include http://www.desura.com/collection | |
// @updateURL https://gist.githubusercontent.com/ohmanger/b057f444cd2d5205bdfc/raw | |
// @downloadURL https://gist.githubusercontent.com/ohmanger/b057f444cd2d5205bdfc/raw | |
// @require https://gist.githubusercontent.com/BrockA/2625891/raw | |
// @grant none | |
// @version 1.2.2 | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Indie Royale Bundle Hider | |
// @description Hides bundles you don't own from your collection page | |
// @include http://www.indieroyale.com/collection | |
// @updateURL https://gist.githubusercontent.com/ohmanger/71334947a6f7470ef16e/raw | |
// @downloadURL https://gist.githubusercontent.com/ohmanger/71334947a6f7470ef16e/raw | |
// @grant none | |
// @version 1.1.1 | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Humble Bundle key cache | |
// @include https://www.humblebundle.com/home* | |
// @updateURL https://gist.githubusercontent.com/mikemanger/b5bb71c9b9a1ac70b7ad/raw | |
// @downloadURL https://gist.githubusercontent.com/mikemanger/b5bb71c9b9a1ac70b7ad/raw | |
// @grant GM_setValue | |
// @grant GM_getValue | |
// @run-at document-end | |
// @version 1.1.4 | |
// ==/UserScript== |
OlderNewer