buddypress s2member uri solution
-
I found this topic about a solution that i need but it′s incomplete
https://www.s2member.com/forums/topic/uri-restriction-for-buddypress-profile/
i understand to added
$uris = (strlen ($displayed_username)) ? preg_replace (“/%%displayed_username%%/i”, c_ws_plugin__s2member_utils_strings::esc_ds ($displayed_username), $uris) : $uris;into wp-content/plugins/s2member/includes/classes/ruris.inc.php but can you please explain where do i put the rest of the code?
$displayed_username = str_replace(“/members/”, “”, $_SERVER[“REQUEST_URI);
$slash = strpos($displayed_username, “/”);
$displayed_username = substr_replace($displayed_username, “”, $slash);
- The topic ‘buddypress s2member uri solution’ is closed to new replies.