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: Subsite Lostpassword | |
Plugin URI: http://webdeveloperswall.com/wordpress/multisite-forgot-password-url-issue/ | |
Description: Updates URLs on susbites and in lost password request emails to point to the subsite where the lost password request started. | |
Version: 1.0 | |
Author: ckchaudhary | |
Author URI: http://webdeveloperswall.com/wordpress/multisite-forgot-password-url-issue/ | |
*/ |
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_filter( 'gmw_fl_after_query_clauses', 'wdw_gmw_fl_qc_alter', 11, 2 ); | |
/** | |
* Geo my wp - member locator addon. | |
* By default the plugin excludes all the users who have not provided their location info yet. | |
* This is bad. If i am not searching by location, but searching only by xprofile fields, | |
* the plugin still excludes users who have not entered their location info yet. | |
* | |
* This is a dirty hack to attemtp to fix that. | |
* | |
* @author ckchaudhary <ckchaudhary@hotmail.com> |
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( 'wp_head', 'dtk_buddypress_og_data', 11 ); | |
function dtk_buddypress_og_data(){ | |
if( bp_is_single_activity() ){ | |
if ( bp_has_activities( 'display_comments=threaded&show_hidden=true&include=' . bp_current_action() ) ){ | |
while ( bp_activities() ){ | |
bp_the_activity(); | |
$title = wp_strip_all_tags( bp_get_activity_action() ); | |
$content = wp_strip_all_tags( bp_get_activity_content_body() ); | |
$url = bp_activity_get_permalink( bp_get_activity_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
<?php | |
/** | |
* Merge given arrays, overriding $defaults array with values from $args array recursively. | |
* | |
* @author ckchaudahry | |
* | |
* @param $args array | |
* @param $defaults array | |
* | |
* @return 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
<li class="bbp-body"> | |
<?php while ( bbp_topics() ) : bbp_the_topic(); ?> | |
<?php bbp_get_template_part( 'loop', 'single-topic' ); ?> | |
<?php endwhile; ?> | |
</li> |
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( function_exists( 'bbpresslmt_loadmore_button' ) ): ?> | |
<?php bbpresslmt_loadmore_button(); ?> | |
<?php endif; ?> |
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
<li class="bbp-body"> | |
<?php while ( bbp_topics() ) : bbp_the_topic(); ?> | |
<?php bbp_get_template_part( 'loop', 'single-topic' ); ?> | |
<?php endwhile; ?> | |
<?php if( function_exists( 'bbpresslmt_loadmore_button' ) ): ?> | |
<?php bbpresslmt_loadmore_button(); ?> |
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
<script> | |
jQuery(document).ready(function($){ | |
$(".wpcf7").on( 'mailsent.wpcf7', function(){ | |
var redirect_to = $(this).find('#wdw_redirect_to_url').val(); | |
if( typeof(redirect_to)!=='undefined' && redirect_to!='' ){ | |
window.location.href= redirect_to; | |
} | |
}); | |
}); | |
</script> |
OlderNewer