ramya
Forum Replies Created
-
Ha, I tried this one but it display on thread list items and coversations list too
Forum: Plugins
In reply to: [wpForo Forum] Adding Custom Forum Post Meta and RetrievingOkay, thank you for the reply. One more thing: How can I display a favorite list in the BuddyPress Profile Forum menu? there’s a menu for liked posts but not for favourite posts
Forum: Plugins
In reply to: [wpForo Forum] Specific Forum ModeratorHow to update wpforo_profiles programmatically, after Chages it could also reflect here when calling the function wpforo_member($user_id());
Forum: Plugins
In reply to: [wpForo Forum] Specific Forum ModeratorHi I already read the documentation, I need a board moderator for my developing project, so when user assigned to the board they have an all controll to that assigned board
Forum: Plugins
In reply to: [wpForo Forum] Specific Forum ModeratorThank Your so much, it work fine on frontend, For backend dashboard how to disable the other menus
Hi, Can I know which program file’s to edit to achieve this feature
How to create a cuctom tab and load the conversation about products in that tab Screenshot by Lightshot (prnt.sc)
Ok Thank you
Now, I able to change the Image and Subject, but still struggling in changing the title. Screenshot by Lightshot (prnt.sc)
Thank You, Using this I can only able to override the subject on a thread using the filter better_messages_rest_thread_item() , how to overwrite the title and image
add_filter('better_messages_rest_thread_item', 'custom_thread_item', 20, 4 ); function custom_thread_item( $thread_item, $thread_id, $thread_type, $include_personal ){ // Overwrite subject $thread_item['subject'] = html_entity_decode('Overwrite subject'); // Overwrite title $thread_item['title'] = html_entity_decode('Overwrite title'); // Overwrite subject $thread_item['img'] = 'https://www.wordplus.org/wp-content/uploads/group-avatars/1/60897d5f10593-bpfull.png'; return $thread_item; }
Thanks @arsalantariq
Any code is available to update user balance/points without a log entry.
I cannot understand it any example code available
Yes, I read out the API documentation but there are no clear examples of how to use it and searched online for examples but nothing was found.
Please, give some examples
What I need is
1. check the user if exists if not return a message ‘no account founds’
2. Display the current balancefunction wpb_api(){ $current_user = wp_get_current_user(); $mail = $current_user->user_email; $secret_key = '*****kjmsJvT'; $remote_url = 'https://example.com/api-dev/'; $action = 'GET'; $account = '$mail'; $point_type = 'mycred_default'; $host = get_bloginfo( 'url' ); $token = md5( $host . $action . $secret_key ); $request = array( 'method' => 'POST', 'body' => array( 'action' => $action, 'account' => $account, 'type' => $point_type, 'token' => $token, 'host' => $host ) ); $response = wp_remote_post( $remote_url, $request ); $balance_html = wp_remote_retrieve_body( $response ); echo $balance_html; } add_shortcode('api-test','wpb_api');
This shortcode returns the current user balance. This shortcode is correct to use or not and how to return the message (check the user if exists if not return a message ‘no account founds’)
not only with mini orange another plugin like Heater social login, Super Socializer
the Referral is not working.$user_id = get_current_user_id();
$user = new WP_User($user_id);
$referral_url_by_userid = ‘id’ === $settings[‘referal_link’] ? true : false;
$referral_url = add_query_arg($referral->referral_handel, $user->user_login, wc_get_page_permalink(‘myaccount’));
if ($referral_url_by_userid) {
$referral_url = add_query_arg($referral->referral_handel, $user->ID, wc_get_page_permalink(‘myaccount’));
}