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 admin_print_scripts() { | |
if( get_post_type() == $this->type || get_query_var('post_type') == $this->type ) : | |
wp_enqueue_script( 'ads-admin' ); | |
// BEGIN hack to highlight expired/expiring ads | |
$now = time(); | |
$expired_ads = get_posts( | |
array( |
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
// AJAX USER SEARCH | |
$('#pdsm_teacher').suggest( | |
ajaxurl+'?action=pdsm_teacher_search', | |
{ | |
delay: 500, | |
minchars: 2, | |
onSelect: function() { | |
var selected = $('ul.ac_results li.ac_over span.suggest-result-name').text(); | |
this.value = selected; | |
} |
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( '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> | |
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 | |
$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 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 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 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 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 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 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 | |
*/ |