This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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; } |
NewerOlder