Notas de la sección: WordPress

Add unfiltered_html Capability to Admins or Editors in WordPress Multisite

Fuente: https://kellenmace.com/add-unfiltered_html-capability-to-admins-or-editors-in-wordpress-multisite/

<?php

/**
* Enable unfiltered_html capability for Editors.
*
* @param array $caps The user's capabilities.
* @param string $cap Capability name.
* @param int $user_id The user ID.
* @return array $caps The user's capabilities, with 'unfiltered_html' potentially added.
*/
function km_add_unfiltered_html_capability_to_editors( $caps, $cap, $user_id ) {

if ( 'unfiltered_html' === $cap && user_can( $user_id, 'editor' ) ) {

$caps = array( 'unfiltered_html' );

}

return $caps;
}
add_filter( 'map_meta_cap', 'km_add_unfiltered_html_capability_to_editors', 1, 3 );

Woocommerce Order Status Definitions – Significado de los Estados de un Pedido

When reviewing or fulfilling an order, you will notice each order has a status that reflects where the order is in your order fulfillment pipeline.  There are quite a few options for an order’s status, some are modified manually by you the Shop Manager, while others are changed by the order system itself.

Here are the status definitions for reference:

  • Pending – Order received (unpaid)
  • Failed – Payment failed or was declined (unpaid)
  • Processing – Payment received and stock has been reduced- the order is awaiting fulfilment
  • Completed – Order fulfilled and complete – requires no further action
  • On-Hold – Awaiting payment – stock is reduced, but you need to confirm payment
  • Cancelled – Cancelled by an admin or the customer – no further action required
  • Refunded – Refunded by an admin – no further action required

Source: https://www.bozzmedia.com/posts/get-know-woocommerce-status-definitions/

A %d blogueros les gusta esto: