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: On This Date | |
Plugin URI: https://kungfugrep.com/ | |
Description: Gives a shortcode [on_this_date] to show posts from this day of the month in all years | |
Version: 0.1 | |
Author: Chris Klosowski | |
Author URI: https://kungfugrep.com | |
License: GPLv2 or later | |
*/ |
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
# Add this to your .bashrc (linux) or .bash_profile (OS X) | |
alias getsalts="curl https://api.wordpress.org/secret-key/1.1/salt/" | |
# Changes to these files require closing and reopening a new terminal session to be recognized |
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 | |
function ck_our_reply_additions( $text, $args, $comment, $post ) { | |
$text = $text . ' <button>Click here to like this comment</button>'; | |
return $text; | |
} | |
add_filter( 'comment_reply_link', 'ck_our_reply_additions', 10, 4 ); |
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
location ~* ^/podcast-download/ { | |
try_files $uri $uri/ | |
fastcgi_index /index.php; | |
include fastcgi_params; | |
fastcgi_pass 127.0.0.1:9000; | |
} |
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
Wow, first off the fact that I had to search for how to cancel a plan with you, is beyond ridiculous. | |
You just need a delete or cancel button on the plan list...end of story. | |
Then I'm met with this form of 7 required fields, when all you really should need to | |
know is my plan I want to cancel. The rest of this form is just so you can justify | |
your burn rate. | |
I've been through this form before...you know what happened? | |
Yeah, you gave ma 403 error to me when trying to cancel. | |
Yep, you provide a bad user experience and it doesn't even work in the end. |
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 $meta_keys = get_post_meta( get_the_ID() ); ?> | |
<?php foreach( $meta_keys as $meta => $value ) : ?> | |
<?php if( ( '_' != $meta[0] ) && ( 'enclosure' != $meta ) ) : ?> | |
<span class="custom-meta"><strong><?php echo $meta; ?>:</strong> <?php echo $value[0]; ?></span> | |
<?php endif; ?> | |
<?php endforeach; ?> |
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 | |
$path = NULL; | |
if ( isset( $_GET['path'] ) ) { | |
$path = $_GET['path']; | |
} | |
// File types to search in | |
$extensions = array( | |
'php', | |
'inc', |
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_register_script( 'jquery-migrate', get_template_directory_uri() . '/scripts/jquery-migrate.js', array( 'jquery' ), 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
Show hidden characters
// While you can edit this file, it's best to put your changes in | |
// "User/Preferences.sublime-settings", which overrides the settings in here. | |
// | |
// Settings may also be placed in file type specific options files, for | |
// example, in Packages/Python/Python.sublime-settings for python files. | |
{ | |
// Sets the colors used within the text area | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
// Note that the font_face and font_size are overriden in the platform |
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 | |
/** | |
* Register our settings section | |
* | |
* @return array | |
*/ | |
function ck_edd_settings_section( $sections ) { | |
// Note the array key here of 'ck-settings' | |
$sections['ck-settings'] = __( 'Example EDD Extension', 'example-edd-extension' ); |