Replies
It’s a bad idea.
1. You should never flush rewrite rules on each request. That will hit the performance badly.
The last one is slightly better but still not recommend. why do you want to automate the permalink structure on theme activation?
It will take only 30 second to update it manually.
If you still want to do it, here is a cleaned version of your last one
function set_custom_permalinks() { if ( get_option( 'permalink_structure' ) ) { return; } global $wp_rewrite; // Save permalinks to a custom setting, force create of rules file $wp_rewrite->set_permalink_structure( '/%postname%/' ); $wp_rewrite->flush_rules( true ); } add_action( 'after_switch_theme', 'set_custom_permalinks' );Regards
Brajesh- Brajesh Singh on June 12, 2022 at 11:52 pm in reply to: [Resolved] Xprofile Field – Country Select #45322
Hi Quint,
You can achieve that by selecting match any/match all in the search mode and setting overflow on the front end search view.Please see
https://i.ibb.co/vYWqXhZ/Selection-512.pngWere you looking for something different?
Regards
Brajesh - Brajesh Singh on June 12, 2022 at 3:30 am in reply to: [Resolved] GROUP TABS: Remove need for Admin to See Tabs #45311
Hi Dianne,
I am sorry for the inconvenience.Please allow us to put an update by day end Tuesday with the option to set it to None.
Regards
Brajesh Hi Silvana,
Welcome to BuddyDev support forums.Which theme, template pack and plugin are you using? Please let me know and we will assit.
Regards
Brajesh- Brajesh Singh on June 12, 2022 at 3:28 am in reply to: [Resolved] Xprofile Field – Country Select #45309
Hi Quint,
Thank you.Probably you do not need to update that. The BP profile search plugin allows selecting mode when adding the field to search. Try switching the mode. They control the user Interface.
Regards
Brajesh - Brajesh Singh on June 12, 2022 at 3:13 am in reply to: [Resolved] Approval required prior to group creation #45308
Hi Nik,
Thank you for the question.We did not find it aligned with our goal and could not work on it.
If you want to achieve it, you may want to set the group hidden by default, disable the Group Management screen for creators, disable joining/request and then add a filter for filtering these in the admin.
Regards
Brajesh Hi Daniel,
I am sorry, I could not try the theme.Will be doing so by day end tomorrow and updating you.
Regards
Brajesh- Brajesh Singh on June 12, 2022 at 3:09 am in reply to: buddyblog medium editor not displaying embeds #45306
Thank you. appreciate it.
Regards
Brajesh - Brajesh Singh on June 12, 2022 at 3:09 am in reply to: [Resolved] Pay Per Post by selling access with WooCommerce #45305
Hi Tosin,
Ravi is expected to work on it next week. Hopefully, we may have the update soon.Regards
Brajesh - Brajesh Singh on June 12, 2022 at 3:08 am in reply to: BuddyPress Xprofile Custom Field Types: Tags field #45304
Hi,
I am sorry for the delayed reply.We missed to update in 1.2.3 . Yesterday, we released another update to include it.
Please upgrade to latest version from wp.org and put this code in your bp-custom.php
add_filter( 'bpxcftr_enable_tag_removal_on_view_profile', '__return_false' );That will do it.
Please let me know if it works for you or not?
Regards
Brajesh