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 | |
//* Do NOT include the opening php tag | |
//* Delay the adding of new content to the WordPress RSS feed | |
function b3m_delay_publish_rss_feed($where) { | |
global $wpdb; | |
if ( is_feed() ) { |
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 | |
//* Do NOT include the opening php tag | |
//* BEGIN: Disable WordPress RSS Feed | |
function b3m_disable_rss_feed() { | |
wp_die( __( 'Our RSS feed is disabled. Please <a href="'. get_bloginfo('url') .'">visit our homepage</a>.' ) ); | |
} |
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 | |
//* Do NOT include the opening php tag | |
//* BEGIN: Disable WordPress RSS Feed | |
function b3m_disable_rss_feed() { | |
wp_die( __( 'Our RSS feed is disabled. Please <a href="/">visit our homepage</a>.' ) ); | |
} | |
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 | |
//* Do NOT include the opening php tag | |
//* Display email to screen WITHOUT href and scramble it to hide from spam bots | |
//* http://codex.wordpress.org/Function_Reference/is_email | |
//* http://codex.wordpress.org/Function_Reference/antispambot | |
function b3m_hide_email_shortcode( $atts, $content = null ) { | |
if ( ! is_email( $content ) ) { | |
return; | |
} |
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 | |
//* Do NOT include the opening php tag | |
/** 508 Compliant Search Box | |
* @param string search form | |
* @param string search text | |
* @param string button text | |
* @return string modified search form | |
*/ | |
function b3m_search_form( $form, $search_text, $button_text ) { |
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 | |
//* Do NOT include the opening php tag | |
//* Remove silly-ass emoji code | |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
remove_action( 'wp_print_styles', 'print_emoji_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
# BEGIN Allow/Deny Access to WP-LOGIN | |
<Files wp-login.php> | |
# set up rule order | |
order deny,allow | |
# default deny | |
deny from all | |
# Add additional IPs for access below: | |
# YOUR PLACE OF BUSINESS | |
allow from xxx.xxx.xxx.xxx | |
allow from xxx.xxx.xxx.xxx |
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 | |
//* Do NOT include the opening php tag | |
/** | |
* @purpose: Remove references to feed from <head> section of website | |
* | |
* @author: Rick R. Duncan | |
* @contact: www.rickrduncan.com | |
* | |
*/ | |
function b3m_remove_header_junk() { |
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 | |
//* Do NOT include the opening php tag above | |
//* Customize search form input box text of Genesis child themes | |
add_filter( 'genesis_search_text', 'b3m_genesis_search_text' ); | |
function b3m_genesis_search_text( $text ) { | |
return esc_attr( 'Search my blog...' ); | |