sunofjuche
Forum Replies Created
-
Just tried 99, but alas, nothing changed
I’ve read all these notes and already tried replacing the deprecated function
UM()->user()->set_status( 'rejected' );
with the new one
UM()->common()->users()->set_status( $user_id, 'rejected' );
but to no avail. (Also, there seems to be an error in the notes, particularly in the order of parameters in set_status, which is actually ( $user_id, $status ) in the source code of the plugin)
Anyway, I suppose the problem isn’t in the deprecated function, but the fact that there’s something new in the whole registration handling process that causes the status to be changed after the ‘um_registration_complete‘ hook is fired
- This reply was modified 2 weeks ago by sunofjuche.
Great, appreciate your help! Resolved
@missveronicatv
Thanks for the suggestion, it works properly now. However, editing plugin’s core code is not the best idea. Do you think plugin devs could consider adding this feature (url encoding username) natively, or at least adding a hook to this function so that users can do the necessery processing themselves?@missveronicatv
Google Chrome.
Email client is Gmail. But the issue persists with other clients too.
Actually, I found out what is the cause. I’m using an SMTP service, and it changes links midway when sending messages, i.e. somehow wraps it, perhaps for security reasons. But I looked up what these messages looked like right before being sent, and links there are fine. The problem is that whitespaces aren’t properly url-encoded (should look like %20), which causes the service to think it’s the end of link.Now I have to think how this can be resolved best. Yes, it’s not related to the plugin, but if you have any clues, I’d highly appreciate.
- This reply was modified 9 months, 2 weeks ago by sunofjuche.
Forum: Plugins
In reply to: [Autoptimize] Not optimizing/deferringYeah, it seems Elementor plugin was causing this issue. I just wanted to confirm I’m not mixing things up. Thanks, and sorry for bothering!
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Not loading any attachmentsHey, this query works for me:
$query = new WP_Query(); $posts = $query->query(array('post_status' => 'inherit', 'post_type'=> 'attachment', 'post_mime_type' => 'image/jpeg,image/gif,image/jpg,image/png'));
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Not loading any attachmentsAlright, I see. Thanks for quick answer!
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Not loading any attachmentsThank you, I’ve already checked everything out. Unfortunatelly, I’m not eager to use ACF premium at the moment, so no way to use the Gallery. So, is it safe to say that the only way for me to load attachments is to have them attached to specific posts, and no other option available?