Could you please try to use the given code which we need to add functions.php
file of theme.
Use Case : This is to remove the Forum step from the group creation process.
add_filter('groups_create_group_steps', function( $steps ) {
unset( $steps['forum'] );
return $steps;
});
Use Case : This is to redirect any attempts to access the forum step URL.
add_action( 'template_redirect', function() {
if ( bp_is_group_creation_step( 'forum' ) ) {
wp_redirect( bp_get_group_create_slug() ); // Redirect to the first step of group creation
exit;
}
});
Thanks
Related Posts:
- Remove username in emails or swap username for email
- Help with adding pagination to custom wp_query
- Reordering Buddy Press profile navigation [closed]
- Show css depending on activity type in BuddyPress activity-loop [closed]
- Making BuddyPress Activity Stream (Post Type) Featured Images Clickable [closed]
- How do I programmatically set a user as spam in BuddyPress? [closed]
- WordPress Stripping Colons?
- Buddypress update user avatar image via REST
- After adding my website to a new server, I keep getting a unexpected end of file error, but the file is identitcal to it’s original source
- Why BuddyPress fields not saving?
- Change homepage content if user is logged in – BuddyPress
- How to do something when user profile rendereing?
- implementing a jQuery “click to expand” link in WordPress [closed]
- is user member of a group, show them categories [closed]
- Wp favorites posts by specific category? [closed]
- Display multi-select box choices in a bullet list [closed]
- WordPress -> If Is Role Subscriber Show Image?
- Customize Buddypress adminbar [closed]
- Prevent Buddypress Rewrite Rules on Non-Buddypress pages/posts
- copy fields value to another field
- How do I visualize the author’s post from the front end?
- Change username link in admin bar
- how to get buddy press messages based on thready_id?
- Where is the php file of single member profile view (BuddyPress)
- Allow BBPress participant role to trash topics
- Create a dynamic buddupress tab
- Access methods in plugin template
- Get string from array and start loop [closed]
- 2 small questions: How to redirect to a created page & show that pages title in wp, bp
- Sending the reset password link programatically
- How do I directly access a PHP file located in my themes folder?
- Only show div on homepage/blog index in wordpress/php
- WordPress the_content() return only one image from a specific category
- Display all posts in current category
- file_exists() acting weird
- Is it possible to use the featured image of a page as a css background without inlining?
- PHP syntax error when using wpdb update?
- Select dropdown not showing selected value php
- Woocommerce – How to get products which have a sale between 20% to 40%? [closed]
- Warning: array_pop() expects parameter 1 to be array, boolean given
- How to migrate the posts from an old custom legacy blog to a new WordPress website?
- items_wrap not working
- Using shipped version of jquery
- Can’t search posts using WP_QUERY inside AJAX Function
- How do I Add HTML to the_excerpt() & the_content() Output?
- Display fields as values in array from external SQL DB
- User’s total comment count excluding comments on their own posts
- Populate dropdown with Child Pages based on Parent Page chosen
- How can I remove a function that has been added to wordpress with add_filter?
- do search in two site and show the result in first site
- What’s the uses of wp_cache_set() or wp_cache_add()?
- How to get post’s current parent term ID?
- How would an if statement surrounding a custom field with two variables (holding values) look like?
- get_the_title() gets printed out twice
- What does this mean in wordpress? Easy question
- How to get private property in parent class into extended class?
- Add Codepen animation as Preloader to WordPress
- Setting user nickname and displayname to shortened email
- Error Uncaught ArgumentCountError i cant find it
- Use $wpdb or other PHP script method to find/replace in WP database
- Simple WordPress endpoint route doesn’t work
- How do I create a function that modifies a message in the wp-login.php file?
- Why when I create a new post I found 2 record related to this post into the posts database table?
- Trying to display terms from custom taxonomy within function
- WP_Query for woocommerce products with a pattern as a post_title
- What’s wrong in my PHP code? I’m using WordPress Astra Theme and I can’t insert data into my SQL
- Displaying a List of Changes / Updates on the Website Publicly
- 404 on old link after changing post url
- Dropdown category field inside repeatable metabox
- How to add Text before my Custom Term and hide it when empty
- how to fix Warning: A non-numeric value encountered in this specefic line of code
- Responsive loop with 3 columns inside row then 2 columns
- How To Get HTML Eelement From Another Page
- Cron job -many duplicate posts
- Annoying/confusing WordPress memory limit exhausted
- Unexpected behavior when trying to manually install WordPress on macOS Sierra
- how to call other plugins once custom post has been inserted
- Force ‘permanent’ post cache of shortcode results
- How to fix UpdraftPlus’s memory issue?
- Are WordPress widgets cached?
- Are widget arguments always set inside My_Widget::widget()?
- How to fix blank pagination links?
- Fatal error: Call to a member function get_results() on a non-object in on line 26
- Different image and background color depending on page type
- Inserting A Feed and Sidebar into an HTML Page
- How To: Simple domPDF Example
- SVN precommit and nullable return types [closed]
- Encode code snippet in AJAX endpoint
- How Can I Edit a WordPress Site’s PHP Files Without Breaking the WP Install?
- How to edit the default database of WordPress [closed]
- how to use header function in wp-load.php file [closed]
- 404 page is not the same when using PHP code in functions
- if is specific custom post in cpt
- Trying to add taxonomy terms to search results page
- I updated my version of php and got error
- custom AJAX filtering logic and outputting results into an Elementor Loop Grid widget
- translating a custom taxonomy term in a shortcode
- how can I get the selected term of a custom taxonomy
- Getting checkboxes for some tags in a search box
- Translating the “Everything” filter menu in Quicksand jquery file