Manual Curs WP v6.4.3 català – Manual Curso WordPress v6.4.3 castellano
Temas gratuitos (colorlib) – Tema gratuito (phlox) – Temas gratuitos (famethemes) – Temas gratuitos (catchthemes)
Cómo crear un Tema Hijo – Artículo actualizado
Plugin All-in-One-WP Migration estable
Plugin para ampliar a 512Mb el límite de subida de All-in-One-WP Migration
Cómo ampliar el límite de subida de All-in-One-WP Migration
Plugin para ampliar a 512Mb el límite de subida de All-in-One-WP Migration – PARCHEADO
Plugin All-in-One-WP Migration modificado sin limitaciones de subida – NO OFICIAL
Tutorial de creación de temas para WP con Underscores
Tema desarrollado con Underscores + Bootstrap = Understrap
Datos Redsys para entorno de pruebas
Pedaç per All-In-One WP Migration
posar a l’arxiu functions.php del tema:
// =================
// = Max File Size =
// =================
define( 'AI1WM_MAX_FILE_SIZE', 2 << 28 );
Pedaç per polylang
posar a l’arxiu functions.php del tema:
// POLYLANG
// Make sure Polylang copies the content when creating a translation
function jb_editor_content( $content ) {
// Polylang sets the 'from_post' parameter
if ( isset( $_GET['from_post'] ) ) {
$my_post = get_post( $_GET['from_post'] );
if ( $my_post )
return $my_post->post_content;
}
//
return $content;
}
add_filter( 'default_content', 'jb_editor_content' );
//
// Make sure Polylang copies the title when creating a translation
function jb_editor_title( $title ) {
// Polylang sets the 'from_post' parameter
if ( isset( $_GET['from_post'] ) ) {
$my_post = get_post( $_GET['from_post'] );
if ( $my_post )
return $my_post->post_title;
}
//
return $title;
}
add_filter( 'default_title', 'jb_editor_title' );
Pedaç per plugin de REDSYS per WooCommerce
posar a l’arxiu functions.php del tema:
// REDSYS
add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' );
function custom_woocommerce_auto_complete_order( $order_id ) {
if ( ! $order_id ) {
return;
}
//
$order = wc_get_order( $order_id );
$metodo = $order->payment_method;
if ($metodo != 'bacs'){
//
wp_mail( 'micorreo@midireccion.com', 'Nuevo pedido por tarjeta', 'Has recibido un nuevo pedido pagado con tarjeta' );
$order->update_status( 'processing' );
//
}
//
}