WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
checkout hook with $variable ? (2 posts)

  1. peaco
    Member
    Posted 1 year ago #

    hello..
    is it possible to insert a variable to this hook wich displaying real text instead the placeholdertext like <?php echo $_GET["mytext"]; ?>

    // Hook in
    add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
    
    // Our hooked in function - $fields is passed via the filter!
    function custom_override_checkout_fields( $fields ) {
         $fields['order']['order_comments']['placeholder'] = 'My new placeholder';
         return $fields;
    }

    [Please post code snippets between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    thanks
    peaco

    http://wordpress.org/extend/plugins/woocommerce/

  2. brandonrshaw
    Member
    Posted 1 year ago #

    +1 on this question

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic