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
<?php | |
// Will default to base.php, then base-(referrer).php | |
get_template_part( 'base', wp_get_referer() ); |
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
<?php | |
add_filter( 'the_content', 'custom_before_content' ); | |
function custom_before_content ( $content = '' ) { | |
// Just drop in content in the your_text variable. It can be html or plain | |
$category = get_the_category(); | |
switch( $category[0]->cat_name ) { | |
case 'Category 1' : | |
$your_text = 'Category 1'; | |
default : |
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
<?php | |
/* | |
Plugin Name: Entrepreneurs Are Affiliates | |
Plugin URI: http://www.vincereed.com/ | |
Description: This plugin enables and disables a user to be an affiliate based on whether or not they have purchased the Entrepreneur product. Affiliate status is double-checked every time a transaction is made. | |
Version: 1.0 | |
Author: Pixel Jar | |
Author URI: http://www.pixeljar.net | |
*/ |
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
<?php | |
register_sidebar(array('name'=>'Homepage Left Blue Box','before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h4>','after_title' => '</h4>',)); | |
register_sidebar(array('name'=>'Homepage Right Blue Box','before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h4>','after_title' => '</h4>',)); | |
register_sidebar(array('name'=>'Right Sidebar','before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h4>','after_title' => '</h4>',)); |
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
<?php | |
if_my_site_is_infected() { | |
visit("sucuri.net"); | |
} else { | |
die(); | |
} |
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
add_action( 'template_include', 'pjbd_home_include' ); | |
function pjbd_home_include( $template ) { | |
if( is_front_page() ) : | |
remove_filter( 'template_include', array( 'APP_Wrapping', 'wrap' ), 99 ); | |
$template = locate_template( 'home.php' ); | |
endif; | |
return $template; | |
} |
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
<?php | |
// Hook into the BuddyPress registration form | |
add_action( 'bp_after_signup_profile_fields', 'add_honeypot' ); | |
/** | |
* Add a hidden text input that users won't see | |
* so it should always be empty. If it's filled out | |
* we know it's a spambot or some other hooligan | |
*/ |
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
.ad-125x125 { | |
float: left; | |
} | |
.ad-125x125.column-1 { | |
clear: both; | |
margin-right: 20px; | |
} |
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
<?php | |
$new_args = array( | |
'post_type' => 'shopp_product', | |
'orderby' => 'date', | |
'posts_per_page' => 15, | |
'tax_query' => array( | |
array( | |
'taxonomy' => 'shopp_category', | |
'field' => 'id', |
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
<?php | |
add_action( 'edit_user_profile', 'edit_user_profile' ); | |
add_action( 'edit_user_profile_update', 'edit_user_profile_update' ); | |
function edit_user_profile( $user ) { | |
?> | |
<h3><?php _e("Affiliate Assignment", "blank"); ?></h3> | |