7h47
Forum Replies Created
-
Bonjour,
Merci pour votre reponse.
Comment changer cela ?
Est-ce que votre plugin verifie le type de methode de livraison pour autoriser le bordereau ?
Si oui quel est son identifiant ? has_shipping_method(”)Est-ce que créer un hook woocommerce_checkout_order_created pour changer le type de livraison pourrait contourner ça ?
Merci par avance.
Cdl Sébastien.
Add if you want to change category :
(here it’s a custom category)
$post = array( 'ID' => $post_id, 'tax_input' => array( 'option' => [number of category] ) ); wp_update_post($post);for example, i add a action in plugin : update post date
1 – add file in plugins/scheduled-content-actions/inc : action-update.php
add_action( 'sca_do_update_post', 'sca_update_post' ); function sca_update_post( $post_id ) { // http://codex.ww.wp.xz.cn/Database_Description#Table:_wp_posts $my_post = array( 'ID' => $post_id, 'post_date' => date('Y-m-d H:i:s') ); // Update the post into the database wp_update_post($my_post); }2 – modify plugins/scheduled-content-actions/scheduled-content-actions.php
add in section “content actions” :
require_once dirname( __FILE__ ) . '/inc/action-update.php';3 – modify plugins/scheduled-content-actions/inc/actions.php
add :
'update_post' => __( 'Update post', SCA_TEXTDOMAIN ),Forum: Plugins
In reply to: [Contact Form 7] Where to add custom HTML for form design?off course you can.
In form manager, put your html tag (if you need)
Ex :<div id="bloc-devis"> <p class="champs"><label>Nom*</label>[text* your-name] </p> <div class="input_file_style_new">[file file244]<img src="btn_joindre.png"/></div> <p class="champs"><label>Message</label>[textarea your-message] </p> <input type="image" name="imageField" id="btn_devis" value="Envoyer"/> </div>And after change the style.css.
I use this :
eventDisplay=upcoming
orderby=EventStartDate
order=asc