Hack/Function for General-Template.php
-
Can anyone tell me how to write a custom function for my functions.php for this block of code. I don’t want lose it in the next WordPress Update? This code comes from gemneral-template.php. It is for the Meta widget REGISTER/LOGIN LOGOUT I replaced the ADMIN link to show User Profile. SO when user is logged in they click profile and it takes them to Buddypress Profile.
function wp_register( $before = ' ', $after = ' ', $echo = true ) { if ( ! is_user_logged_in() ) { if ( get_option('users_can_register') ) $link = $before . '' . __('Register') . '' . $after; else $link = ''; } else { $link = $before . ' ' . __('User Profile', 'buddypress') . '' . $after; }
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Hack/Function for General-Template.php’ is closed to new replies.