Created
June 18, 2024 13:00
-
-
Save yuriinalivaiko/dbbad498fe2a2479b74d632463144efb to your computer and use it in GitHub Desktop.
Ultimate Member - Groups
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Enable Invites search for new groups by default. | |
add_action( 'um_groups_after_front_insert', 'um_groups_invites_search_on', 10, 2 ); | |
function um_groups_invites_search_on( $formdata, $group_id ) { | |
if ( ! empty( $formdata['invites_settings'] ) ) { | |
add_post_meta( $group_id, '_um_groups_invites_search', 1 ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment