Moved this over 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
[branch] | |
autosetuprebase = always | |
[mergetool "p4merge"] | |
cmd = /home/<username>/dir/to/p4v/bin/p4merge "$BASE" "$LOCAL" "$REMOTE" "$MERGED" | |
keepTemporaries = false | |
trustExitCode = false | |
keepBackup = false | |
[merge] |
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_posts | |
inner join wp_term_relationships rel on wp_posts.id=rel.object_id | |
inner join wp_term_taxonomy tax on rel.term_taxonomy_id=tax.term_taxonomy_id | |
inner join wp_terms term on tax.term_id=term.term_id | |
set wp_posts.post_type='your_post_type' | |
WHERE | |
term.slug="category_name" |
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 | |
// Include tlc lib | |
require_once WPMU_PLUGIN_DIR . '/wp-tlc-transients/tlc-transients.php'; | |
/** | |
* Use in place of `get_posts` | |
* | |
* @param array $args Array of get_posts arguments | |
* @param integer $time Amount of time before cache expires |
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 | |
/** | |
* Change metric from 'ga:pageViews' for top-content widget and shortcode | |
* | |
* @link https://ga-dev-tools.appspot.com/query-explorer/ Google's Query Explorer for more info | |
* | |
* @param array $params Array of request params | |
* | |
* @return array Modified array of request params | |
*/ |
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 | |
/** | |
* Modify CMB2-Post-Search-Field to output more than just an id | |
* @link https://github.com/WebDevStudios/CMB2-Post-Search-field | |
*/ | |
class CMB2_Search_Get_Extra_Post_Data { | |
protected static $single_instance = null; |
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
voices=( | |
Agnes | |
Albert | |
Alex | |
Alice | |
Alva | |
Amelie | |
Anna | |
Bad | |
Bahh |
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: DsgnWrks Instagram Importer - Make Title the Image Date | |
Plugin URI: http://dsgnwrks.pro/plugins/dsgnwrks-instagram-importer | |
Description: Set the title of your instagram posts to the date the image was taken | |
Author URI: http://dsgnwrks.pro | |
Author: DsgnWrks | |
Donate link: http://dsgnwrks.pro/give/ | |
Version: 0.1.0 | |
*/ |
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
alert( [+[++[+[]][+[]]+[]+[[]+[][+[]]][+[]][++[++[++[+[]][+[]]][+[]]][+[]]]+[++[+[]][+[]]+[]][+[]]+[+[]]+[+[]]+[+[]]][+[]]+[]][+[]][+[]]+' <'+ ++[++[++[[]][+[]]][+[]]][+[]] +' '+[[][+[]]+[]][+[]][+[]] ) |
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
/* | |
Switch `` with <pre lang="PHP"></pre> | |
*/ | |
function pmpro_code_wrap($content) | |
{ | |
$content = preg_replace("/`(.*?)`/s", '<pre lang="PHP">$1</pre>', $content); | |
return $content; | |
} | |
add_filter("the_content", "pmpro_code_wrap", -1); |
OlderNewer