bug since last updates
-
Hi and thank you for your work on WCV!
I’m contacting you today about a bug I noticed recently, that is related to some of the newest updates you did on WCV:
I use some custom code to add 2 images from my vendors backend profiles, and customize this way the header on each vendor’s shop. Here is the code bellow.
I just noticed that it doesn’t work anymore and I can’t find where it comes from… Then I don’t know why, but my custom CSS on the vendor’s shop page was also broken (which I can correct anyway so this is not a big problem.
Can you please help me about this custom code so that I can make it work with the last updates?
Thank you so much in advance, have a great day,
Emilien<?php /** ajouter des champs user profil pour url images header vendor shop **/ add_action( 'show_user_profile', 'add_extra_image_links' ); add_action( 'edit_user_profile', 'add_extra_image_links' ); function add_extra_image_links( $user ) { ?> <h3>Adresse Image Header Shop Vendeur</h3> <table class="form-table"> <tr> <th><label for="imghead_shopvendeur">Image Shop</label></th> <td><input type="text" name="imghead_shopvendeur" value="<?php echo esc_attr(get_the_author_meta( 'imghead_shopvendeur', $user->ID )); ?>" class="regular-text" /></td> </tr> <tr> <th><label for="logohead_shopvendeur">Shop Logo</label></th> <td><input type="text" name="logohead_shopvendeur" value="<?php echo esc_attr(get_the_author_meta( 'logohead_shopvendeur', $user->ID )); ?>" class="regular-text" /></td> </tr> </table> <?php } update_user_meta( $user_id, $meta_key, $meta_value, $prev_value ); add_action( 'personal_options_update', 'save_extra_image_links' ); add_action( 'edit_user_profile_update', 'save_extra_image_links' ); function save_extra_image_links( $user_id ) { update_user_meta( $user_id,'imghead_shopvendeur', sanitize_text_field( $_POST['imghead_shopvendeur'] ) ); update_user_meta( $user_id,'logohead_shopvendeur', sanitize_text_field( $_POST['logohead_shopvendeur'] ) ); } ?>
- The topic ‘bug since last updates’ is closed to new replies.