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_filter( 'wp_ulike_pro_init_modal_after_success', function( $content, $data ){ | |
ob_start(); | |
echo "Thank You!"; | |
return ob_get_clean(); | |
}, 10 , 2 ); |
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 wp_ulike_pro_custom_pre_archive($query) { | |
/* only proceed on the front end */ | |
if( is_admin() ) { | |
return; | |
} | |
if ( ( is_category() || is_tag() || is_archive() ) && $query->is_main_query() ) { |
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 wp_ulike_pro_custom_after_signup_process( &$args ){ | |
// Get current user id | |
$meta_args = array(); | |
$meta_args['phone'] = ! empty( $_POST['phone'] ) ? $_POST['phone'] : null; | |
$meta_args['user-role'] = ! empty( $_POST['user-role'] ) ? array( $_POST['user-role'] ) : null; | |
foreach ($meta_args as $key => $value) { | |
update_user_meta( $args->data['user_id'], $key, $value ); |
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 a custom HTTP request header to fix IP address detection | |
* @param \Geminilabs\Vectorface\Whip $whip | |
* @return void | |
*/ | |
add_action('wp_ulike_whip_action', function ($whip) { | |
$customHeader = 'HTTP_X_SUCURI_CLIENTIP'; // change the header as needed | |
$whip->addCustomHeader($customHeader); | |
}); |
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 | |
// Use this hook to disable default buddyboss like button: | |
add_filter( 'bp_is_activity_like_active', '__return_false' ); |
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
:root { | |
--clapping-custom-primary-color: #bdc3c7; | |
--clapping-custom-secondary-color: #ff6d6f; | |
--clapping-custom-dot-color: rgba(149, 165, 166, 0.5); | |
--clapping-custom-triangle-color: rgba(211, 84, 0, 0.5); | |
--clapping-custom-shockwave-color: #fc573b; | |
} | |
.wpulike.wpulike-clapping .wp_ulike_btn { | |
border-color: var(--clapping-custom-primary-color); |
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
<style> | |
.wpulike-custom-pro-template .wp_ulike_btn { | |
background: none; | |
padding: 0; | |
width: auto; | |
height: auto; | |
} | |
.wpulike-custom-pro-template .wp_ulike_btn:hover, .wpulike-custom-pro-template .wp_ulike_btn:focus { | |
color: black; | |
background-color: transparent; |
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 wp_ulike_get_user_profile_url( $user_id = 0 ){ | |
return wp_ulike_pro_get_user_profile_permalink( $user_id ); | |
} | |
add_filter( 'bbp_pre_get_user_profile_url', 'wp_ulike_get_user_profile_url' ); | |
add_filter( 'bbp_pre_get_user_topics_created_url', 'wp_ulike_get_user_profile_url' ); | |
add_filter( 'bbp_pre_get_user_replies_created_url', 'wp_ulike_get_user_profile_url' ); | |
add_filter( 'bbp_pre_get_user_engagements_url', 'wp_ulike_get_user_profile_url' ); |
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 wp_ulike_pro_custom_top_posts($atts){ | |
$args = array( | |
'post_type' => 'post', | |
'orderby' => array( 'meta_value_num' => 'DESC') , | |
'meta_query' => array( | |
'relation' => 'OR', | |
array( | |
'key' => 'like_amount', |
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_filter( 'wp_ulike_display_admin_new_likes', '__return_false' ); |