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 | |
//check if form was sent | |
if($_POST){ | |
$to = '[email protected]'; | |
$subject = 'Testing HoneyPot'; | |
$header = "From: $name <$name>"; | |
$name = $_POST['name']; |
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
/** | |
* Shortcode: Take Points | |
* This custom shortcode allows you to take points from your users when they | |
* click on the button this shortcode generates. Supports optional confirmation message. | |
* @version 1.0.2 | |
*/ | |
add_shortcode( 'mycred_take', 'mycred_pro_render_take_shortcode' ); | |
function mycred_pro_render_take_shortcode( $atts, $label = 'Give Away' ) { | |
extract( shortcode_atts( array( |
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 | |
$loop = new WP_Query( array( | |
'post_type' => 'Property', | |
'posts_per_page' => -1 | |
) | |
); | |
?> | |
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?> |
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_shortcode( 'mycred_manual_adjustments', 'mycred_render_manual_adjustments' ); | |
function mycred_render_manual_adjustments( $atts, $content = NULL ) { | |
// Must be logged in | |
if ( ! is_user_logged_in() ) return; | |
// myCRED must be enabled | |
if ( ! function_exists( 'mycred' ) ) return 'myCRED is not installed'; | |
// Load myCRED | |
$mycred = mycred(); |
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 | |
class JPB_User_Caps { | |
/** | |
* An array of all protected roles | |
* @var array | |
*/ | |
protected $protectedRoles = array( | |
'webmaster', |