ninsan
Forum Replies Created
-
Hi @bornforphp
Thank you for helping. I doublechecked and the cache is indeed enabled on my staging website, yet the ‘Purge cache’ option doesn’t appear in the admin bar. When I enable the cache on my local desktop server it starts caching pages immediately. Could there a server configuration blocking it or something?
/jenny
Thank you for your help!
You are right. The reason I assumed the redirect issue had something to do with Ultimate Member is because after I installed the plugin I noticed that a few new pages had been added in WP-admin > Pages, one of which was a login page with a UM shortcode and the slug “login”. But the issue persists even after I deactivate Ultimate Member and all other plugins on my site. In this case, when a logged-out user enters the /login/ path in the address bar they are automatically redirected to wp-login.php. So this seems to be a WordPress issue/design choice. For now, my solution is to deny access to the /login/ path via my website’s htaccess file, thus preventing automatic redirects from said path to my secret login url.
/jenny
@champsupertramp That worked! Thanks! ??
/jenny
I think figured out what the issue is. I am using the ‘upload_mimes’ filter in another mu-plugin to control which file types can be uploaded to the media library. Apparently the file types specified in the ‘upload_mimes’ callback override any file types specified by the ‘um_allowed_image_types’ callback, even if the priority argument of the ‘um_allowed_image_types’ callback is given a higher value.
Is there any way for ‘um_allowed_image_types’ to override or circumvent the restrictions set by ‘upload_mimes’?
I just realized I submitted this post in the wrong forum. It should be in the ‘Developing with WordPress’ forum. Could someone move it for me? Thanks.
/jenny
@kaavyaiyer By total size (sorry for the poorly worded title). I am interested in calculating the total, cumulative size of all of the current user’s uploaded media files and, if the total size exceeds the maximum quota, the user will need to free up space by deleting one or more files in order to upload new ones. The code I have so far works when a user uploads files to the media library, but it causes issues when they try to upload a file directly into a post within the block editor.
Thanks for helping!
/jenny ??
@missveronicatv That did the trick! Thank you! ??
/jenny
@champsupertramp Thank you, worked like a charm! ??
If you are logged in as an administrator then you should be able to add a new user via WP-admin > Users > Add New. This should work even if the option ‘Anyone can register’ is disabled in Settings > General.
/jenny
Hi @daydah I think it was I who marked the issue as resolved but that’s because I contacted Astra’s technical support and they replied to me via email explaining where and how to find the Account menu (you can add it as a widget by going to Customizer > Header Builder and click on the plus sign (‘+’) in the ‘Above Header’, ‘Primary Header’ or ‘Below Header’ field). I reposted their full explanation here but I see now that my post has been removed for some reason. Hope this helps. ??
/jenny
@missveronicatv Thank you so much for helping! The code you provided worked like a charm! ??
/jenny
Hey @champsupertramp Thank you so much! The code does exactly what I want. Cheers! ??
@aswingiri The shortcode worked! Thanks so much! ??
@aswingiri You mean the post in which the login and profile forms are embedded? No, it’s a regular blog post, it is not set as the current User Page.