Thread Starter
qnkov
(@qnkov)
@missveronicatv
So basicaly, there is no fix even now? Or should i use that code from the threat where u paste in function.php?
@qnkov
Yes try the code snippet, there are no comments by the UM developers about this being fixed now.
Thread Starter
qnkov
(@qnkov)
@missveronicatv
I’ve added it to my theme’s function and i think it’s working.
Hi @qnkov
Thank you for contacting our support, and I apologize for the late response. Could you please tell us which codes did you add to the theme’s functions.php file?
Regards,
Thread Starter
qnkov
(@qnkov)
Hi, i’ve added this, and UM it’s not slowing up my site anymore with newer versions. Or at least not to that extend of 5+ secs per action.
<?php
if ( function_exists( 'UM' ) ) {
remove_action( 'pre_get_posts', array( UM()->access(), 'exclude_posts' ), 99 );
remove_filter( 'get_next_post_where', array( UM()->access(), 'exclude_navigation_posts' ), 99 );
remove_filter( 'get_previous_post_where', array( UM()->access(), 'exclude_navigation_posts' ), 99 );
remove_filter( 'widget_posts_args', array( UM()->access(), 'exclude_restricted_posts_widget' ), 99 );
remove_filter( 'wp_count_posts', array( UM()->access(), 'custom_count_posts_handler' ), 99 );
remove_filter( 'getarchives_where', array( UM()->access(), 'exclude_restricted_posts_archives_widget' ), 99 );
remove_action( 'pre_get_terms', array( UM()->access(), 'exclude_hidden_terms_query' ), 99 );
remove_action( 'pre_get_comments', array( UM()->access(), 'exclude_posts_comments' ), 99 );
remove_filter( 'comment_feed_where', array( UM()->access(), 'exclude_posts_comments_feed' ), 99 );
remove_filter( 'wp_count_comments', array( UM()->access(), 'custom_comments_count_handler' ), 99 );
remove_filter( 'get_comments_number', array( UM()->access(), 'disable_comments_open_number' ), 99 );
remove_filter( 'the_title', array( UM()->access(), 'filter_restricted_post_title' ), 10 );
}
?>
-
This reply was modified 5 months, 3 weeks ago by
qnkov.
Hi @qnkov
Thanks for letting us know about which code you’ve used. Could you please tell us how many posts you have on your site? Also, is your site accessible to everyone globally?
Thread Starter
qnkov
(@qnkov)
@ultimatemembersupport
Like posts, i have around 10000. Yes, my site is globally accessible. I have around 100-200 users per day.
That’s my site if u need to check something more – [ redundant link removed ]
And i have tried with killing plugins few months ago, leaving only UM (newer version back then), but the plugin was the only culprit for slow site.
Gonna ask something else while we are here.
How to fix this problem? – https://prnt.sc/cX_a3ucCY88i
Looks like my theme’s is problem, cutting half of the menu. How can i move the menu a bit on the left side, so you can see it whole.
-
This reply was modified 5 months, 2 weeks ago by
qnkov.
-
This reply was modified 5 months, 2 weeks ago by
qnkov.
-
This reply was modified 5 months, 2 weeks ago by
qnkov.
-
This reply was modified 4 months, 3 weeks ago by
Jan Dembowski.
Thread Starter
qnkov
(@qnkov)
@ultimatemembersupport
Have you done any fix on that or its still the same?
Thread Starter
qnkov
(@qnkov)