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 | |
add_filter( 'months_dropdown_results', 'rkv_remove_month_filters' ), 10, 2 ); | |
/** | |
* remove the month drop down filter by | |
* spoofing WP and saying that none exist | |
* for specific post types | |
* | |
* @param array $months the original count | |
* @param string $post_type the post type |
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 | |
add_action( 'init', 'rkv_comment_noindex_base' ); | |
/** | |
* remove the noindex flag on the reply links | |
* when not using Yoast SEO | |
* | |
* @return null | |
*/ | |
function rkv_comment_noindex_base() { |
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 | |
add_filter( 'cun_single_item_email', 'rkv_single_cun_notify' ); | |
function rkv_single_cun_notify( $post_id ) { | |
return absint( $post_id ) === absint( THE_ID_I_WANT ) ? true : false; | |
} |
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 | |
/** | |
* bypass the notification email on successful auto-updates | |
* | |
* @param [type] $send [description] | |
* @param [type] $type [description] | |
* @param [type] $core_update [description] | |
* @param [type] $result [description] | |
* @return [type] [description] | |
*/ |
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 | |
add_filter( 'the_content', 'rkv_shortcode_cleanup',1001 ); | |
/** | |
* remove weird tags | |
* | |
* @param [type] $content [description] | |
*/ | |
function rkv_shortcode_cleanup( $content ) { |
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 | |
/** | |
* keeps a user always logged in | |
* don't use this on a production site, ever! | |
*/ | |
add_action( 'init', 'rkv_auto_login' ); | |
add_action( 'admin_init', 'rkv_auto_login' ); |
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 vol_price_css() { | |
$theme_dir = get_bloginfo('template_directory'); | |
?> | |
<style type="text/css"> | |
.shopp h2.voc_title {padding: 12px 15px 25px 0;} | |
.icon32 {background: url(<?php echo $theme_dir;?>/lib/img/shopp32.png) no-repeat scroll 0 0 transparent;} | |
.vcc_price_update_btn { position:absolute; top:47px; left:400px;} | |
table.price-editor tr.headers th{font-weight:bold;} |
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 | |
/** | |
* Aweber widget | |
*/ | |
class aweber_Widget extends WP_Widget { | |
function aweber_Widget() { | |
$widget_ops = array( 'classname' => 'aweber', 'description' => 'Displays the aweber opt-in form' ); | |
$this->WP_Widget( 'aweber', 'Aweber Form', $widget_ops ); | |
} |
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
@charset "utf-8"; | |
/* CSS Document */ | |
html, body { | |
height: 100%; | |
} | |
html { | |
background-color: #fff; | |
} | |
body.login { | |
background:#1D2736; |