Save product short description in order (without updating in order details if it is updated in product)

I understand that it is possible to display the short description of the product on the order details page, even in an email. But I need this not to update when I update the short product description.

Real situation: My products are updated every day, these products detail the number of parts that will actually be sent at the time of purchase, according to availability.

Title: Surprise box

Short description: Contains a palette, a lemon and a stone. (this changes every day)

I need to pass this short description in the mail, order details for the client and for the admin, so I can follow up later.

The problem is that I only find codes to show the short description of the updated product, no matter the time of purchase, the last one edited will always be shown.

any idea where to start?

Short code to modify the user profile from the frontend

I am trying to pass a template that I found here to a short code to display on a page on the frontend.

Now now I have the following:

// profile action hook - catches form submission and acts accordingly add_action('init','profile_form_submission'); function profile_form_submission() {      /* Get user info. */     global $  current_user, $  wp_roles;     //get_currentuserinfo(); //deprecated since 3.1      /* Load the registration file. */     //require_once( ABSPATH . WPINC . '/registration.php' ); //deprecated since 3.1     $  error = array();         /* If profile was saved, update profile. */     if ( 'POST' == $  _SERVER['REQUEST_METHOD'] && !empty( $  _POST['action'] ) && $  _POST['action'] == 'update-user' ) {          /* Update user password. */         if ( !empty($  _POST['pass1'] ) && !empty( $  _POST['pass2'] ) ) {         if ( $  _POST['pass1'] == $  _POST['pass2'] )             wp_update_user( array( 'ID' => $  current_user->ID, 'user_pass' => esc_attr( $  _POST['pass1'] ) ) );         else             $  error[] = __('Las contraseñas no son iguales, por lo tanto, no fueron actualizadas.', 'profile');         }          /* Update user information. */         if ( !empty( $  _POST['url'] ) )         wp_update_user( array( 'ID' => $  current_user->ID, 'user_url' => esc_url( $  _POST['url'] ) ) );         if ( !empty( $  _POST['email'] ) ){         if (!is_email(esc_attr( $  _POST['email'] )))             $  error[] = __('Este email no es valido, pruebe otra vez.', 'profile');         elseif(email_exists(esc_attr( $  _POST['email'] )) != $  current_user->id )             $  error[] = __('Este email ya esta en uso por otro usuario, pruebe con otro.', 'profile');         else{             wp_update_user( array ('ID' => $  current_user->ID, 'user_email' => esc_attr( $  _POST['email'] )));         }         }           /* Redirect so the page will show updated info.*/       /*I am not Author of this Code- i dont know why but it worked for me after changing below line to if ( count($  error) == 0 ){ */         if ( count($  error) == 0 ) {         //action hook for plugins and extra fields saving         do_action('edit_user_profile_update', $  current_user->ID);         wp_redirect( get_permalink() );         exit;         }     } }  // shows login form (or a message, if user already logged in) function get_profile_customers_form($  redirect) {             if ( !is_user_logged_in() ) {         $  return = .__('Tienes que estar logueado para modificar esta pagina.', 'profile');             else {                 if ( count($  error) > 0 ) echo '<p class="error">' . implode("<br />", $  error) . '</p>';                 <form method="post" id="adduser" action="<?php the_permalink(); ?>">                     <p class="form-email">                         <label for="email"><?php _e('E-mail *', 'profile'); ?></label>                         <input class="text-input" name="email" type="text" id="email" value="<?php the_author_meta( 'user_email', $  current_user->ID ); ?>" />                     </p><!-- .form-email -->                     <p class="form-password">                         <label for="pass1"><?php _e('Contraseña *', 'profile'); ?> </label>                         <input class="text-input" name="pass1" type="password" id="pass1" />                     </p><!-- .form-password -->                     <p class="form-password">                         <label for="pass2"><?php _e('Confirmar *', 'profile'); ?></label>                         <input class="text-input" name="pass2" type="password" id="pass2" />                     </p><!-- .form-password -->                      <?php                          //action hook for plugin and extra fields                         do_action('edit_user_profile',$  current_user);                      ?>                     <p class="form-submit">                         <?php echo $  referer; ?>                         <input name="updateuser" type="submit" id="updateuser" class="submit button" value="<?php _e('Actualizar cuenta', 'profile'); ?>" />                         <?php wp_nonce_field( 'update-user' ) ?>                         <input name="action" type="hidden" id="action" value="update-user" />                     </p><!-- .form-submit -->                 </form><!-- #adduser -->    }  // adds a handy [profile_form_submission] shortcode to use in posts/pages add_shortcode('profile_form_submission','profile_form_submission_shortcode'); function vr_login_shortcode ($  atts,$  content=false) {   $  atts = shortcode_atts(array(     'redirect' => home_url()   ), $  atts);   return get_profile_customers_form($  atts['redirect']); } 

I don’t know how to do the part of the code that the form shows. It is from "// shows login form (or a message, if user already logged in)".

The original code that I am trying to adapt was the following:

    <?php if ( !is_user_logged_in() ) : ?>             <p class="warning">                 <?php _e('Tienes que estar logueado para modificar esta pagina.', 'profile'); ?>             </p><!-- .warning -->     <?php else : ?>         <?php if ( count($  error) > 0 ) echo '<p class="error">' . implode("<br />", $  error) . '</p>'; ?>         <form method="post" id="adduser" action="<?php the_permalink(); ?>">             <p class="form-email">                 <label for="email"><?php _e('E-mail *', '<br />', 'profile'); ?></label>                 <input class="text-input" name="email" type="text" id="email" value="<?php the_author_meta( 'user_email', $  current_user->ID ); ?>" />             </p><!-- .form-email -->             <p class="form-password">                 <label for="pass1"><?php _e('Contraseña *',"<br>", 'profile'); ?> </label>                 <input class="text-input" name="pass1" type="password" id="pass1" />             </p><!-- .form-password -->             <p class="form-password">                 <label for="pass2"><?php _e('Confirmar *',"<br>", 'profile'); ?></label>                 <input class="text-input" name="pass2" type="password" id="pass2" />             </p><!-- .form-password -->              <?php                  //action hook for plugin and extra fields                 do_action('edit_user_profile',$  current_user);              ?>             <p class="form-submit">                 <?php echo $  referer; ?>                 <input name="updateuser" type="submit" id="updateuser" class="submit button" value="<?php _e('Actualizar cuenta', 'profile'); ?>" />                 <?php wp_nonce_field( 'update-user' ) ?>                 <input name="action" type="hidden" id="action" value="update-user" />             </p><!-- .form-submit -->         </form><!-- #adduser --> 

Users (erroneously) type a short URL in the Google search box instead of the address bar. How to make it navigate instead of showing search results?

I’m using a URL shortener to publish pronounceable URLs for my pages so I can tell people something like, "Visit mydomain.com/slug to solve that problem." If people go to the address bar of their browser and enter mydomain.com/slug URL there, then the shortened URL works, and it redirects them to the intended destination page. But if a non-technical user goes to the Google search page and enters mydomain.com/slug into the search box there, apparently, Google apparently isn’t smart enough to recognize that they typed in a URL. It tries instead to search for the URL as keywords and comes back with a list of search results.

When I click "New Tab" in my browser, I know the difference between the address bar and the search box, but many non-technical users don’t, and Google gives the same instructions in both places. Both locations claim to accept both search terms and URLs, but apparently they have different logic for determining which is which. For them to behave differently and not follow the URL when it’s typed into the search box instead of the browser address bar seems to be a fatal flaw in the entire concept of shortened URLs – unless there’s something else I can do to make them work regardless of which field someone types them into. Certainly I can’t be the only one facing this.

What can I do to teach Google that my shortened URL is indeed a URL and when someone types it in the search box, it should go to the place where that URL redirects to?

Slashing with Short Swords

Can a short sword be used to deal slashing damage?

The Weapons Table seems to list short swords as having only the damage type of piercing, and lacking the slashing damage type. However, this strikes me as either a mistake or a misguided decision. Short swords are typically described as and visually depicted as having a double-edged blade, which should mean that it is able to cut.

From The Forgotten Realms wiki (emphasis mine):

In essence, this weapon is a smaller version of the longsword but longer than a dagger or dirk, having many of the same parts including a generally double-edged blade, cross-guard, grip, and pommel. The blade is typically from 12 to 20 in (30 to 50 cm) long with a sharp point. An average short sword costs 10 gp and weighs 2 lb (0.9 kg).1 First edition D&D defined the short sword as “all pointed cutting & thrusting weapons with blade length between 15 in (38 cm) and 24 in (61 cm).”2

Other 3rd Edition material also described as being effectively between the length of a longsword and a daggerboth of which are capable of slashing – suggesting that, all other properties the same, it should be able to as well.

I’ve heard some arguments that the short sword is intended to model certain historical weapons, such as the gladius, which were primarily used for stabbing by Roman soldiers after the reach of their spears had been breached. Even so, the gladius also sported a double-edged blade and seemed capable of slashing if necessary.

Of course, this problem only comes into play when fighting a monster with damage resistances or vulnerabilities to one damage type over the other. Even if the weapon was not primarily designed for slashing (which still seems in question), I would think that under such circumstances of life and death, at the very least, this would be possible.

Is there any reason, historical or otherwise, as to why a character could not slash with a short sword?

Running select filename from dbo.sysfiles returns short foldernames with tilde

I am running the following statement in SQL Server 2014(in Windows 2012R2):

select filename from dbo.sysfiles where fileid = 1 

However it returns:

c:\progra~1\micros~1\mssql1~1.sql\mssql\data\master~1.mdf 

I wish for the full path without the tilde.

(e.g C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\DATA\master.mdf)

I tried upgrading the SQL Server 2014 Express to 2016 Express but it made no difference.

Any ideas? Thanks. Dave

Changing category subject in short intervals

I would like to know if it is possible to not get penalised by google for changing the subject of a category entirely. I would like to swap a category that I have built on a webpage, for one with a more relevant (as of now) topic. Changing description, content and title etc… would this destroy my SEO? It has amassed backlinks of great quantity and quality over the course of time and I seriously would not like to have them wasted or passed with internal links as the page itself is invaluable.

Assume anchors to my webpage were all "" for convenience purposes. They are nothing particularly descriptive.

Any input would be appreciated

Can I as a Bloodhunter create mutagens without doing a short or long rest?

As a 2020 version of the Bloodhunter/mutagen order, at lvl 3 I can create one mutagens in a short/long rest.

I read this handbook:

As a possible fix: Instead of preparing your mutagens during a rest, you prepare reagents for mutagens.

Creating a mutagen requires one minute of uninterrupted work with these reagents and a set of alchemist’s tools. This allows the Blood Hunter a bit more flexibility with their mutagens, but not so much that they can change them during combat."

I don´t really understand where he gets that with the reagents. I can´t find it in the books and nothing about it on the internet.

This way I could do a 1 min pause and prepare the mutagen without doing a short rest.

I hope you can help me to understand it better.

If a product category is then display code in product short description

How to display a specific code in a product short description if it is belong to a specific category, i’ve used below code in function to add the code but it is displaying on all products.

    function herara_filter_short_description( $  desc ){     global $  product; if ( is_single( $  product->id ) )         //$  new_desc = 'SKU: ' . $  product->get_sku();         $  new_desc = '<span class="sku_wrapper">SKU: <span class="sku">'. $  product->get_sku() .'</span></span></BR><span class="material_wrapper">MATERIAL: <span class="material">'. $  product->get_sku() .'</span></span>';         //$  new_desc .= $  desc;     return $  new_desc; } add_filter( 'woocommerce_short_description', 'herara_filter_short_description' );