I’m using this filter in s2-hack.php to change the ‘edit profile’ link in the s2profile login shortcode (summary once logged in) to that of the BuddyPress edit profile link. Is not working and I’m getting this error message on each part of the form: Warning : Trying to access array offset on value of type bool in /Users/[username]/Local Sites/[websitename]/app/public/wp-content/plugins/s2member/src/includes/classes/profile-in.inc.php on line 200
<?php
apply_filters('ws_plugin__s2member_pro_login_widget_options', 's2hack_change_url_dynamically', 10, 1);
function s2hack_change_url_dynamically($options = array()) {
if(is_array($options)){
$options['my_profile_url'] = bp_loggedinuser_link();
return $options['my_profile_url'];
}
}
I found this code in an s2member forum.