Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ohw_update_field( $user_id ){
- $field = 'side_banner_' . $user_id;
- $side_ad = $_POST[ $name ];
- update_usermeta( $user_id, $name, $side_ad );
- update_option( $name, $side_ad );
- }
- add_action( 'personal_options_update', 'ohw_update_field' );
- add_action( 'edit_user_profile_update', 'ohw_update_field' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement